Where is the Wrapper Assembly Key File setting in VS 2008?

 ̄綄美尐妖づ 提交于 2020-02-20 10:39:38

问题


I'm trying to build an application that is strongly named. It is referencing a COM interop library that I add via the Add References dialog. It's been a while, but I seem to recall that in older versions of visual studio, there was a project setting for Wrapper Assembly Key File. I can't seem to find it in Visual Studio 2008?


回答1:


I came across your post looking for the same thing, but found a different route on my own to get around the issue of strong naming a COM Interop referenced assembly.

You can sign the imported type library assembly with the key file before you reference it in Visual Studio by using the /keyfile:<key.snk> parameter:

tlbimp MyCOMService.tlb /out:Interop.MyCOMService.dll /keyfile:MyKeyFile.snk



回答2:


Found it in the project properties, after reading this article below.

How to Configure a Strong Name Assembly Key File (MSDN)



来源:https://stackoverflow.com/questions/884528/where-is-the-wrapper-assembly-key-file-setting-in-vs-2008

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