Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do i create a strong named interop dll for shdocvw.dll

I have a Browser Helper Object project in c# that (obviously) references shdocvw.dll. I think I want to create a strongly named interop dll for shdocvw.dll. How do I do this - I've seen a bunch of suggestions out there with aximp.exe and tlimp but I'm not clear how they fit together.

like image 250
Rory Avatar asked Nov 19 '08 12:11

Rory


1 Answers

You should be able to use tlbimp with a /keyfile:FileName or /keycontainer:FileName switch to do this. Or I think you used to be able to do it in the IDE, simply by adding a COM reference (there was a checkbox to apply the same key to such).

sn -k new.snk
tlbimp shdocvw.dll /out:axshdocvw.dll /keyfile:new.snk

Obviously you could use your existing key...

You might also want to check that WebBrowser doesn't already do everything you need...

like image 61
Marc Gravell Avatar answered Nov 14 '22 22:11

Marc Gravell