Steps for Giving strong name to DLL

Steps for Giving strong name to DLL

1.)Open .net command prompt.

2.)Go to the folder contanig DLL.

3.)Type sn -k test.snk, you can use any file name instead of test. This will create test .snk file in that folder.

4.)Open the assemblyinfo.cs file of project.

5.)Type file path in this tag [assembly:AssemblyKeyFile@"E:\hemant\practice\HP\bin\Debug\HP.snk")]

6.)Build application, finally your strong name created for your DLL.
Ebook Download
View all
Learn
View all