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

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 Sign the assembly and select a new key file.
B. Run the sn.exe command to create a new key file. Run the al.exe command to sign Assembly2 by using the generated key file.
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.

microsoft-exams

2 thoughts on “What should you do to ensure that Assembly1 can load Assembly2?

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.