1. Generate the public key:
Use visualStudio.Net command prompt and type the following command:
sn -k keyfile1.snk
keyfile1.snk is the keyfile we are generating.
Store this key file in the bin folder of the assembly. For example:
C:\foldername\assemblyname\bin sn-k keyfile1.snk
2. Placing the keyfile into the Assembly.
Go to AssemblyInfo.vb/AssemblyInfo.cs file:
4. Placing the assembly into GAC
There are two ways to place the assembly into GAC.
1. Using the utility gacutil -i
Here you should give the complete path of the dll
c:\>gactutil -i c:\foldername\assemblyname\bin\assemblyname.dll
2. The second method is u can drag the .dll file from the bin folder of the assembly and drop it into GAC.