Dura Soft
.NET-19
Building and Deploying Assembly
•Creating a Library Project
–Make sure your class implements IComponent or derives from System.ComponentModel.Component
•Introspect the assembly using ildasm (covered next)
•Generating shared names from keys
–a public-private key pair is generated for the assembly
•sn –k myKeyFile.snk
–a hash value is created for names and contents of files
–the hash is then signed using the private key
–public key is then placed into the name of the assembly
•Signing the assembly
–modify an entry in the AssemblyInfo to indicate the key file
–[assembly:AssemblyKeyFile(“myKeyFile.snk”)]
–you may also replace the key at a later time by running sn with –R option
•Placing the assembly in cache using the Al tool
–gacutil /i:MyComponent.dll
•