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

What is difference between session and viewstate?

550


Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

604


What is the difference between runtime version and version?

615


while developing webservices if i want some users to use my webservice only how can i give security to my webservice?

1489


what is a .xap file? Explain with an example.

677






explain code with multi inhertance

1728


How can you apply a theme to your asp.net application?

619


Explain the difference between array and linkedlist?

601


How can we pass info between 2 asp.net pages?

662


how to implement some securty aspect in our application i.e 1.cookie poisioning. 2.data encryption. 3.forcefull browsing 4.sql/code injection 5.securing web app by using web services ........my question is how to implement these thing in our application is this done by hard coding or by help of some tool

1739


What is marshalling ? Is it a part of asp.net ?

708


What is the difference between session and viewstate?

591


Why mvc is better than asp.net? : Asp.Net MVC

559


Difference between using directive vs using statement?

588


What is difference between URL and URI?

722