What is Global Assembly Cache (GAC) and what is the purpose
of it?
Answer Posted / guest
Each computer where the common language runtime is installed
has a machine-wide code cache called the global assembly
cache. The global assembly cache stores assemblies
specifically designated to be shared by several applications
on the computer. You should share assemblies by installing
them into the global assembly cache only when you need to.
Steps
- Create a strong name using sn.exe tool
eg: sn -k keyPair.snk
- with in AssemblyInfo.cs add the generated file name
eg: [assembly: AssemblyKeyFile("abc.snk")]
- recompile project, then install it to GAC by either
drag & drop it to assembly folder (C:\WINDOWS\assembly OR
C:\WINNT\assembly) (shfusion.dll tool)
or
gacutil -i abc.dll
Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
Is it possible to create a custom filter?
How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?
What is iobjectset? : Entity framework
What are the components required to create a route in mvc?
Explain entity lifecycle? : Entity framework
Explain the role of assembly in the .net framework.
What are Action Methods in ASP.NET MVC?
How to make sure Client Validation is enabled in ASP.Net MVC
What are the 2 ways of adding constraints to a route?
What are ajax helpers in mvc?
How the ‘page lifecycle’ of ASP.Net MVC does works?
How does the .net framework 3.0 relate to windows vista?
Explain the methods used to render the views in mvc?
How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?
What is difference between html.beginform and ajax.beginform?