How do you register a .NET assembly?

Answer Posted / lavanya

first step is to create a strong name for your assembly by
using the sdk tool named sn and then using the regasm tool
to register the meta data into the registry.

Syntax:

To create a key pair

sn –k myKey.snk

To sign the assembly with a strong name using attributes

[assembly: AssemblyKeyFileAttribute(@"..\..\key.snk")]

To sign the assembly with a strong name using assembly
linker

al /out:MyAssembly.dll MyModule.netmodule /keyfile:myKey.snk

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how to prepare culture-specific formatting in .net.

536


What is the purpose of master page?

516


How to use a Master Database in Asp.net?

570


What events will occur when a page is loaded?

576


What are the different types of Caching techniques in ASP.NET?

575






What is web router?

505


Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?

524


What is asp.net web application?

526


can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?

1751


Define repository pattern in mvc.net? : asp.net mvc

517


How to turn off cookies for a page?

576


Name the namespace which is used by ado.net?

529


Why SessionID changes in every request in asp.net?

549


Define a multilingual website?

530


What are the differnt types of handler in ASP.NET?

532