• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

MCQ

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

A. Use XCOPY to install the assembly in the global assembly cache.
B. Use XCOPY to install the assembly in the Windows\Assembly folder.
C. Create a strong name for the assembly.
D. Recompile the assembly by using the Native Image Generator (Ngen.exe).
E. Modify the application configuration file to include the assembly.
F. Use a deployment project to install the assembly in the global assembly cache.
G. Use a deployment project to install the assembly in the Windows\System32 folder.
0
f_asmaa
Asked:
f_asmaa
  • 2
1 Solution
 
Chester_M_RagelCommented:
C and F
0
 
f_asmaaAuthor Commented:
Why not C,E
0
 
Chester_M_RagelCommented:
The global assembly cache stores assemblies specifically designated to be shared by several applications on
the computer.

C: An assembly must have a strong name to be installed in the global assembly cache.
F: There are two ways to install an assembly into the global assembly cache.

Using Microsoft Windows Installer. This could be achieved by a deployment project.
Using the Global Assembly Cache tool (Gacutil.exe).

Option E is not relevent here. If you include the assembly using Application config file , it wont get installed in GAC.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now