How do you install assembly to the Global Assembly Cache? - .Net Assembly

Define Global Assembly Cache.

Global Assembly Cache is the place holder for shared assembly. If an assembly is installed to the Global Assembly Cache, the assembly can be accessed by multiple applications. In order to install an assembly to the GAC, the assembly must have to be signed with strong name.

How do you install assembly to the Global Assembly Cache?

Followings are the steps to install assembly to the GAC.

- Sign assembly with a strong name using strong name utility, sn.exe.
- Open the AssemblyInfo file for your project.
- Use the AssemblyKeyFileAttribute to specify the path to the key file for your project.
- Build your assembly. Install the assembly to GAC by using gacutil utility e.g. gacutil -i abc.dll
What is AL.EXE and RESGEN.EXE? - .Net Assembly
.Net Assembly - Assembly Linker (Al.exe) generates a file that has an assembly manifest from modules or resource files...
What is code security? What are the types? - .Net Code Security
.Net Code Security - Framework provides the security features to secure code from unauthorized users and unauthorized uses...
Define Principal object - .Net Code Security
.Net Code Security - The Principal object represents authenticated users. It contains information about user’s identity and role.....
Post your comment