Answer 3
Analysis. Answer option D is correct.
To accomplish the required task, Andrew will generate a registry file for Assembly1 using Regasm.exe. Assembly Registration (Regasm.exe) is a tool used to read the metadata within an assembly. It also adds the necessary entries to the registry allowing a COM client to create .NET Framework classes. Once a class is registered using Regasm.exe, a COM client can use it as a COM component. Following is the syntax for using Regasm.exe:
regasm assemblyFile [options]
where, assemblyFile specifies the assembly that is to be registered with COM, and the term options specifies the options to be used. Following are the options that are commonly used with Regasm.exe:
Option Description
/codebase It is used to create a codebase entry in the registry.
/regfile It is used to generate a specified .reg file, containing the required registry entries, for the assembly.
/silent or /s It is used to suppress the display of success messages.
/unregister or /u It is used to unregister creatable classes.
/tlb It is used to generate a type library from a specified assembly.
Answer option C is incorrect. Strong Name (Sn.exe) is a tool used to sign assemblies with strong names. It also provides signature generation, signature verification, and key management. Following is the syntax for using Sn.exe:
sn [options [parameters]]
where, the term options specifies the options to be used, and parameters specifies the parameters used with options. Following are the options that are commonly used with Sn.exe:
Option Description
-k It is used to generate a new key pair and write it to a specified file.
-i It is used to install a key pair from a specified key container that resides in a strong name Cryptographic Service Provider (CSP).
-p It is used to extract a public key from a key pair file and store it in another key pair file.
-v It is used to verify the strong name in an assembly.
-d It is used to delete a specified key container from the strong name CSP.
-D It is used to verify that two assemblies differ only by signature.
-Vx It is used to remove all verification-skipping entries.
Answer option A is incorrect. Type Library Importer (Tlbimp.exe) is a tool used to convert the type definitions from a COM type library into equivalent definitions in a common language runtime assembly. It creates a binary file as output, containing runtime metadata for the types that are defined within the type library. Following is the syntax for using Tlbimp.exe:
tlbimp tlbFile [options]
where, tlbFile specifies the name of the file containing a COM type library, and the term options specifies the options to be used. Following are the options that are commonly used with Tlbimp.exe:
Option Description
/asmversion It specifies the version number of an assembly to be produced.
/delaysign It instructs Tlbimp.exe to use delay signing for signing an assembly.
/keycontainer It specifies the name of the key container in which the public/private key pair to be used for signing an assembly is stored.
/keyfile It specifies the name of the key file in which the public/private key pair to be used for signing an assembly is stored.
/namespace It specifies the namespace in which an assembly is to be produced.
/out It specifies the name of output file, namespace, and assembly in which the metadata definitions are to be written.
/silent It is used to suppress the display of success messages.
Answer option B is incorrect. Runtime Debugger (Cordbg.exe) is a tool that provides command-line debugging services. It uses runtime Debug API to debug managed code. It helps find and fix bugs in programs that target the .NET Framework common language runtime.
