Versioning

There are a few steps that need to be followed to create versioned components. At the time of this writing, VS.NET does not support the ability to automatically create signed components. The first step is the generation of a signing key using the SN.exe utility shipped with the .NET SDK. Generally, a company will create such a key and all .NET components built will use this key to sign the component. To generate a public/private key pair, issue the following command:

sn.exe –k sams.snk

This will create a key file that can be used to sign the assembly. With the key file created, create a new VS.NET project for a C# class library and name the project SharedComponent. Next, add a new class, SharedServer, to the project and enter the ...

Get C# and the .NET Framework: The C++ Perspective now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.