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
what is more complex to implement property, methods or event? how can I define criteria to compare the difficulty of implementation between them? for example the number of methods wanted to implements property is 2 methods. how many methods I need it to implements events?
What is work of clr?
What are Non Action methods in ASP.Net MVC?
What is the full form of sp?
Is .net core replacing .net framework?
What is NonActionAttribute ?
If I have multiple filters implemented, what is the order in which these filters get executed?
How to Create an Intranet Site Using ASP.NET MVC?
What is the "helperpage.isajax" property?
What is basic authentication in web api?
Explain Sections is ASP.Net MVC?
How large is the .net framework 3.0? Does this change make the release larger?
What are HTML Helpers, AJAX Helpers in ASP.Net MVC?
What is action methods in web api?
What is stateless model?