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
Does .NET Framework support SAX?
what is conceptual model?
Does razor engine supports for tdd?
How does the 'page lifecycle' of asp.net mvc works?
What are scaffold templates in mvc?
which are the key concepts of entity data model?
How we can add the css in mvc?
What is the role of the jit compiler in .net framework?
What happens when I install the .net framework 3.0? How can I upgrade if I already have the .net framework 2.0 installed?
How to change the action name in ASP.Net MVC?
Explain how you can implement Ajax in MVC?
Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?
Explain the new features 3.5 framework against with the tool?
What is the 'page life cycle' of an ASP.NET MVC?
What is a view engine?