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 is value type and refernce type in .net?
If you are executing these statements in commandobject. Select * from table1; select * from table2? How you will deal result set? 42. How do you sort a dataset.
What is the use of immutability?
How is .net core cross platform?
What is nmake tool?
What is RCW (Run time Callable Wrappers)?
Do you know what are three common acronyms used in .net, and what do they stand for?
What is a .DLL and .EXE files called in .NET?
Explain what is a manifest in .net?
What is the managed and unmanaged code in .net?
Will it go to finally block if there is no exception happened?
Can we Classic ASP,.Net 1.0, .Net 1.x and .Net 2.0 installed on the same system?