Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the Wrapper Assembly Key File setting in VS 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?

like image 252
Howard Pinsley Avatar asked Dec 02 '25 05:12

Howard Pinsley


1 Answers

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
like image 52
Mike Atlas Avatar answered Dec 04 '25 10:12

Mike Atlas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!