Home » Microsoft » 70-487 v.2 » Which attribute should you add before you compile the dynamic-link library (DLL)?
You need to compile CarBusinesLogic.dll by using Microsoft Visual Studio.
Which attribute should you add before you compile the dynamic-link library (DLL)?
A. System.Reflection.AssemblyConfigurationAttribute
B. System.Reflection.AssemblyKeyFileAttribute
C. AssemblyFlagsAttribute
D. System.Reflection.AssemblyAlgorithmldAttribute
Correct Answer: B
Explanation/Reference:
Explanation:
Scenario: The CarBusinessLogic.dll assembly must be strongly-named.
One way to sign an assembly with a strong name is by using assembly attributes to insert the strong name information into your code. You can use either the AssemblyKeyFileAttribute or the AssemblyKeyNameAttribute attribute, depending on where the key file to be used is located.
Note: To sign an assembly with a strong name by using attributes
• Add the System Reflection.AssemblyKeyFileAttribute or AssemblyKeyNameAttribute attribute to your source code file, and specify the name of the file or container that contains the key pair to use when signing the assembly with a strong name.
• Compile the source code file normally.
References:https://msdn. microsoft.com/en-us/library/xc3lft41(v=vs.110).aspx