What should you do to ensure that Assembly1 can load Assembly2?

Posted by: Pdfprep Category: 70-483 Tags: , ,

You have two assemblies named Assembly1 and Assembly2 that are written in C#. Assembly1 loads Assembly2 by executing the following code.

You create a new project in Microsoft Visual Studio to build a new assembly that will replace Assembly2. The new assembly has the same name and version as the original Assembly2 assembly.

When you execute the code, Assembly1 cannot load Assembly2.

What should you do to ensure that Assembly1 can load Assembly2?
A . Modify the project properties. Click Delay sign only.
B . Change the version of new Assembly2 assembly to 1.0.2.5.
C . Use the sn.exe command to create a new key file. Set the assembly:AssemblyKeyFileAttribute attribute to the new key file.
D . Run the al.exe command to sign Assembly2. Use the same key file used for the original Assembly2 assembly.

Answer: D

Leave a Reply

Your email address will not be published.