If we want to deploy the shared assembly we need to do the following things.
1)Create the Strong Name
2)Sign the project with SNK file.
3)Install the dll
Step 1 :
Strong Name is only needed when you want to deploy the shared assembly in GAC.Strong Names helps GAC to differentiate between two versions. Strong names use public key cryptography which use public key and private key concept so that no one can spoof it.
Procedure for creating strong name:
Goto Visual Studio Command Prompt from start menu.
type this command [sn.exe -k "D:\test.snk"]
then it will create the strong name key file.
Step 2 :
Once you have created the sn key file,then go to your class library ,now Click on project -- properties the browse the SNK file[signing TAB] to the respective folder and compile the project.
Step 3 :
Goto “Visual Studio Command Prompt” and type “gacutil –i (assembly_name)”, where (assembly_name) is the DLL name of the project.
Then the respective assembly will be deployed in the GAC.we can use this assembly in .net any application on the same machine by adding the web reference.
Home
1)Create the Strong Name
2)Sign the project with SNK file.
3)Install the dll
Step 1 :
Strong Name is only needed when you want to deploy the shared assembly in GAC.Strong Names helps GAC to differentiate between two versions. Strong names use public key cryptography which use public key and private key concept so that no one can spoof it.
Procedure for creating strong name:
Goto Visual Studio Command Prompt from start menu.
type this command [sn.exe -k "D:\test.snk"]
then it will create the strong name key file.
Step 2 :
Once you have created the sn key file,then go to your class library ,now Click on project -- properties the browse the SNK file[signing TAB] to the respective folder and compile the project.
Step 3 :
Goto “Visual Studio Command Prompt” and type “gacutil –i (assembly_name)”, where (assembly_name) is the DLL name of the project.
Then the respective assembly will be deployed in the GAC.we can use this assembly in .net any application on the same machine by adding the web reference.
Home
No comments:
Post a Comment