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


Please Help Members By Posting Answers For Below Questions

how can you tell ef to have a different table or column name than that defined for the class?

581


Explain the use of Inversion of control (IOC)?

608


How to Redirect Tracing to a File

597


Explain the new features added in version 4 of mvc (mvc4)?

547


Is dapper faster than entity framework?

536






Where is tempdata stored?

552


What is Area in ASP.Net MVC?

617


Explain the advantage of packaging over xcopy in .net?

550


What is separation of concerns in asp.net mvc?

601


Can any particular component of .net framework 3.0 be removed?

526


Which version of the common language runtime (clr) does the .net framework 3.0 use?

570


What is the use .Glimpse in ASP.Net MVC

581


Is it possible to create a custom filter?

571


mention what is code first approach and model first approach in entity framework?

637


What is a model in programming?

560