Generating an .SNK for Code Strong Deployment
11:34 AMOpen command line window.
Change to c:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin
Execute sdkvars.bat
Then execute sn -k c:\
The key file will be generated for attachment to your project. Right click on your project in Visual Studio and select Add Existing Item. Select the .snk file that you just created.
Then right-click on your project again and select Properties. Navigate to the signing tab. Check Sign the Assembly checkbox, and then choose your .snk file from the Choose a strong name key file dropdown list. Close the Properties window. Rebuild the project to recreate your dll with the strong name.
0 comments