Multiple choice technology programming languages

You use Visual Studio .NET to create an application that uses an assembly. The assembly will reside onthe client computer when the application is installed. You must ensure that any future applicationsinstalled 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

To share an assembly in the Global Assembly Cache (GAC) so other applications can access it, the assembly must have a strong name (created with a public/private key pair) and be properly installed (not just XCOPYed).