Chirag Satasiya
How to generate strong name key file or which command is used to generated strong name key file?
By Chirag Satasiya in .NET on Nov 19 2016
  • Dibyendu Saha
    Jul, 2019 4

    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

    • 0
  • Chirag Satasiya
    Nov, 2016 19

    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

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS