Which two actions can you perform to achieve this goal?

You are developing an assembly that will be used by multiple 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 by multiple 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 to the 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.

Explanation:
There are two ways to deploy an assembly into the global assembly cache:
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).
Note:
In deployment scenarios, use Windows Installer 2.0 to install assemblies into the global assembly
cache. Use the Global Assembly Cache tool only in development scenarios, because it does not
provide assembly reference counting and other features provided when using the Windows Installer.
http://msdn.microsoft.com/en-us/library/yf1d93sz%28v=vs.110%29.aspx



Leave a Reply 3

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


Lord Vader

Lord Vader

https://msdn.microsoft.com/en-us/library/dkkx7f79(v=vs.110).aspx

There are two ways to install a strong-named assembly into the global assembly cache (GAC):
System_CAPS_ICON_important.jpg Important
Only strong-named assemblies can be installed into the GAC. For information about how to create a strong-named assembly, see How to: Sign an Assembly with a Strong Name.
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.

Lord Vader

Lord Vader

The Global Assembly Cache (GAC) is a folder in Windows directory to store the .NET assemblies that are specifically designated to be shared by all applications executed on a system. Assemblies can be shared among multiple applications on the machine by registering them in global Assembly cache(GAC