An assembly is the smallest unit of versioning, security, deployment, version control and reusability of code in .NET. Each assembly contains:
Assembly Identity information (name, version, etc.) Manifest and metadata information MSIL code Type and security information Resources An assembly with a strong name can be uniquely identified by a combination of its assembly version, culture information, and a digital signature.
You can create a strong name for your assembly using the strong name utility (sn.exe) provided by the .NET framework. The utility requires you to provide the name of a strong name key file as a parameter. The resulting file is called a "strong-named" file. You can use the sn.exe tool from the command line to create a strong-named key file as follows:
sn --k MyCompany.snk
You can specify the strong name information in the AssemblyInfo.cs file.
[assembly: AssemblyCulture("")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyKeyFile("MyCompany.snk")]
|
No responses found. Be the first to respond and make money from revenue sharing program.
|