What is Global Assembly Cache (GAC) and what is the Purpose
of it?
Answer / 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 ? | 3 Yes | 0 No |
What's wrong with a line like this? Datetime.parse(mystring);
Name for built-in permission sets in .Net
What is a system lock?
What are the new features of Framework 1.1 ?
Can I write my own .net host?
What is heap and what is stack?
How will u load dynamic assembly? How will create assemblies at run time?
Is .net core installed?
If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?
Explain what is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?
What is common type system (cts)?
Is .net is platform independent. If am using solaris, installing .net first u had to install framework, so framework is .exe file then it will not take in solaris or any other than windows,then how .net is platform independent.