PrepAway - Latest Free Exam Questions & Answers

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.)

PrepAway - Latest Free Exam Questions & Answers

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.

15 Comments on “Which two actions can you perform to achieve this goal?

  1. Foo says:

    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.




    4



    0
  2. LS says:

    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).




    0



    0

Leave a Reply