Multiple choice technology programming languages

You use Visual Studio .NET to create an application that uses an assembly. The assembly will reside on the client computer when the application is installed. You must ensure that any future applications installed on the same computer can access the assembly. Which two actions should you take? (Each correct answer presents part of the solution.

  1. Use XCOPY to install the assembly in the global assembly cache.

  2. Use XCOPY to install the assembly in the Windows\Assembly folder.

  3. Create a strong name for the assembly.

  4. Recompile the assembly by using the Native Image Generator (Ngen.exe).

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Sharing an assembly across multiple applications requires it to be globally accessible. This is achieved by assigning the assembly a strong name and installing it into the Global Assembly Cache (GAC).