Which two actions can you perform to achieve this goal?

You are developing an assembly that will be used bymultiple applications.
You need to install the assembly in the Global Assembly Cache (GAC).
Which two actions can you perform to achieve this goal? (Each correct answer presents a complete
solution. Choose two.)

You are developing an assembly that will be used bymultiple applications.
You need to install the assembly in the Global Assembly Cache (GAC).
Which two actions can you perform to achieve this goal? (Each correct answer presents a complete
solution. Choose two.)

A.
Use the Assembly Registration tool (regasm.exe) to register the assembly and to copy the assembly tothe
GAC.

B.
Use the Strong Name tool (sn.exe) to copy the assembly into the GAC.

C.
Use Microsoft Register Server (regsvr32.exe) to add the assembly to the GAC.

D.
Use the Global Assembly Cache tool (gacutil.exe) to add the assembly to the GAC.

E.
Use Windows Installer 2.0 to add the assembly to the GAC.



Leave a Reply 14

Your email address will not be published. Required fields are marked *


MarcoJacob

MarcoJacob

B (sn.exe to write strongName for assembly) and D (gacutil.exe to copy dll into GAC)

Foo

Foo

D and E.

I’m surprised how many different answers are provided considering the msdn documentation couldn’t be clearer on this matter (https://msdn.microsoft.com/en-us/library/dkkx7f79(v=vs.110).aspx).

“Using Windows Installer.

You do this in Visual Studio 2012 and Visual Studio 2013 by creating an InstallShield Limited Edition Project.

This is the recommended and most common way to add assemblies to the global assembly cache. The installer provides reference counting of assemblies in the global assembly cache, plus other benefits.

Using the Global Assembly Cache tool (Gacutil.exe).

You can use Gacutil.exe to add strong-named assemblies to the global assembly cache and to view the contents of the global assembly cache. ”

B might represent a mandatory step for an assembly to be added to the GAC, but its description (“[…] to copy the assembly to the GAC”) is inaccurate, making it a wrong answer.

Mario

Mario

Perfect.
D and E

Anu

Anu

windows installer is the recommended way to install assemblies in Production , not during development . The question mentions about development , So i think B D

Anu

Anu

Agree with Foo as there is a grammatical trick in B , so DE

Guest

Guest

Use sn.exe to install the assemnly in the gac? I don’t think so 🙂
I’m with Anu, DE.

LS

LS

D and E
Use an installer designed to work with the global assembly cache. This is the preferred option for installing assemblies into the global assembly cache.
Use a developer tool called the Global Assembly Cache tool (Gacutil.exe), provided by the Windows Software Development Kit (SDK).