What is gac? What are the steps to create an assembly and add it to the gac?



What is gac? What are the steps to create an assembly and add it to the gac?..

Answer / Neha Gupta

Global Assembly Cache (GAC) is a directory where Microsoft .NET Framework stores shared assemblies that are used by multiple applications. Here's how you can create an assembly and add it to GAC:n
1. Build your project, which generates the .dll file.
2. Open Command Prompt or PowerShell with administrative privileges.
3. Change the directory to where the .dll file is located.
4. Type the command 'gacutil /i MyAssembly.dll', replacing 'MyAssembly' with your assembly name.nThis will add the specified assembly to the GAC.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Is c# difficult to learn?

1 Answers  


Is lazy thread safe c#?

1 Answers  


Are enums static c#?

1 Answers  


What is difference between write and writeline in c#?

1 Answers  


Why c# is called type safe language?

1 Answers  


Can you have more than one namespace in c#?

1 Answers  


Are c# references the same as c++ references?

1 Answers  


Why is c# better than java?

1 Answers  


What is private constructor c#?

1 Answers  


What are extensions in c#?

1 Answers  


what is CLONE() method?

1 Answers  


What is difference between for and foreach loop in c#?

1 Answers   MCN Solutions,


Categories