VS 2008中的“包装程序集密钥文件"设置在哪里? [英] Where is the Wrapper Assembly Key File setting in VS 2008?
问题描述
我正在尝试构建一个名称严格的应用程序.它引用的是我通过添加引用"对话框添加的COM互操作库.已经有一段时间了,但我似乎还记得,在旧版的Visual Studio中,有一个包装器组装密钥文件的项目设置.我似乎无法在Visual Studio 2008中找到它?
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?
推荐答案
我在您的帖子中寻找相同的内容,但是我自己找到了一条不同的路线来解决强命名COM Interop引用程序集的问题.
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.
使用/keyfile:<key.snk>
参数在Visual Studio中引用它之前,可以使用密钥文件对导入的类型库程序集进行签名:
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
这篇关于VS 2008中的“包装程序集密钥文件"设置在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!