Programming in C# — Question 148
You are creating a class library that will be used in a web application.
You need to ensure that the class library assembly is strongly named.
What should you do?
Answer options
- A. Use assembly attributes.
- B. Use the csc.exe /target:Library option when building the application.
- C. Use the xsd.exe command-line tool.
- D. Use the EdmGen.exe command-line tool.
Correct answer: A
Explanation
The correct answer is A because using assembly attributes is the method for applying strong naming to an assembly, which provides a unique identity. Options B, C, and D do not relate to strong naming; B focuses on compiling a library, while C and D are tools for generating schemas and EDM models, respectively.