To sign an assembly with a strong name, it must have a public/private key pair.
The assembly can be signed using
- Microsoft Visual Studio, OR
- Strong Name Tool (sn.exe)
Using Microsoft Visual Studio (UI)
Follow these steps to sign the assembly using Microsoft Visual Studio 2010
- Right-click the project and click "Properties".
- Select "Signing".
- Check "Sign the assembly".
- Select an existing key or create a new one.
- Save the properties.
- Rebuild the DLL.
Using Strong Name Tool (sn.exe)
- Open Visual Studio 2010 Command Prompt
- Run the command, sn -k [filename]
Refer to Microsoft's documentation for more information.
No comments:
Post a Comment