How do I create a strong name key file for a .NET assembly?
Visual Studio 2005 makes it easy to create a strong name key file: • Select your assembly project in the Visual Studio Solution Explorer. • Click the Properties button. The project properties will appear in the main window. • Select the Signing tab: • Check the Sign the assembly checkbox. • In the Choose a strong name key file drop-down, select New. The “Create Strong Name Key” dialog appears: • In the Key file name text box, type the desired key name. Typically this is the name of your assembly but can be anything. Visual Studio will automatically append the proper file extension. • If desired, you can protect the strong name key file with a password. To do so, check the Protect my key file with a password checkbox, then enter and confirm the password. • Click the OK button. Now when you compile your project, Visual Studio will automatically sign your assembly with the new strong name key you have just created.