070-483 Free Dumps Study Materials
Question 3: 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?
A. Use the gacutil.exe command-line tool.
B. Use assembly attributes.
C. Use the aspnet_regiis.exe command-line tool.
D. Use the xsd.exe command-line tool.
Correct Answer: B
Explanation
The Windows Software Development Kit (SDK) provides several ways to sign an assembly with a
strong name:
* Using the Assembly Linker (Al.exe) provided by the Windows SDK.
* Using assembly attributes to insert the strong name information in your code. You can use either
the AssemblyKeyFileAttribute or the AssemblyKeyNameAttribute, depending on where the key file to
be used is located.
* Using compiler options such /keyfile or /delaysign in C# and Visual Basic, or the /KEYFILE or
/DELAYSIGN linker option in C++. (For information on delay signing, see Delay Signing an Assembly.)