- Get link
- X
- Other Apps
Posted by
Real
- Get link
- X
- Other Apps
1. Generating a public key or a strong name :
go to visualStudio.Net command prompt and type the following command:
sn -k keyfile1.snk – Without path
C:\foldername\assemblyname\bin sn-k keyfile1.snk – Generates key file in the path
Here keyfile1.snk is the keyfile we are generating
2. Adding the public key to the AssemblyInfo.vb file of the DLL. This step is called Signing the Assembly with a public key.
Go to AssemblyInfo.vb file:
<Assembly: AssemblyKeyFile("C:\foldername\assemblyname\\keyfile1.snk")>
3. Build the assembly
4. Placing the dll into GAC :
There are two way in which u can 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 the folder C:\winnt\Assembly
Comments
Post a Comment
Thanking you for the comment.