http://www.geekzilla.co.uk/ViewCE64BEF3-51A6-4F1C-90C9-6A76B015C9FB.htm
- Generate a KeyFile using sn tool
Location: C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\sn.exe
Command: sn -k keyPair.snk - Get the MSIL for the assembly
Location: C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\ildasm.exe
Command: ildasm SomeAssembly.dll /out:SomeAssembly.il - Rename the original assembly, just in case
ren SomeAssembly.dll SomeAssembly.dll.orig - Build a new assembly from the MSIL output and your KeyFile
Location: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ilasm.exe
Command: ilasm SomeAssembly.il /dll /key= keyPair.snk