To create a strong name key file we need to run the following command in comand prompt with the file name: sn -k sgKey.snk.After the public/private key pair is created ,we need to provide the file name in the AssemblyInfo file of the project for whom we want to generate the strong name key.In AssemblyInfo file we need to add : [assembly: AssemblyKeyFile(@”FilePathAndName”)]and build the project
Strong name key file are generated with help of sn.exe command. Open the visual studio command prompt and type following command: sn.exe -k C:\DemoKeyFile.snk It will generate “DemoKeyFile.snk” file under c: drive