1.14. Delay Sign an Assembly

Problem

You need to create a strong-named assembly, but you don't want to give all members of your development team access to the private key component of your strong-named key pair.

Solution

Extract and distribute the public key component of your strong-named key pair. Follow the instructions in recipe 1-12 that describe how to give your assembly a strong name. In addition, specify the /delaysign switch when you compile your assembly. Disable strong name verification for the assembly using the -Vr switch of the Strong Name tool (sn.exe).

NOTE

If you are using Visual Studio, you can configure your strong-named assembly to be delay signed by opening the project properties, selecting the Signing tab, and checking the ...

Get Visual Basic 2008 Recipes: A Problem-Solution Approach 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.