How do I strong name a C++ assembly in VS2008?

眉间皱痕 提交于 2020-01-15 01:24:09

问题


I have no experience developing C++ on Windows, but I am a C# developer.

I have a wrapper around some native DLLs that is written in C++. (A LGPL project)). I was to use this from a strong named assembly.

How do I set up the strong naming of the C++ assembly? There is no 'Signing' properties tab available as there is in C# projects.

I imagine that I need to edit the vcproj file and put a reference to the key file, something like

 /KEYFILE:"sgKey.snk" 

that I found at this site: http://www.windows-tech.info/17/6a8f0ab94246fb61.php

I'm sure it will be easy once I find the right reference. Can someone point me in the right direction?

An easy question for C++ devs to get some rep points out of.

Thanks.


回答1:


I found it. For some reason the first time I clicked on the project the property pages came up empty. On retry I found it in the project property page.

Configuration Propertyes|Linker|Advanced|Key File. 

And just enter the path to the snk key file.

Thanks for looking.



来源:https://stackoverflow.com/questions/2389886/how-do-i-strong-name-a-c-assembly-in-vs2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!