Tuesday, March 14, 2006

VB.NET: Strong Naming

Quick and ditry strong naming. Very helpful for no longer having to trust assemblys on a network.


sn.exe -k PublicPrivateKeyFile.snk

'Strong Naming
<Assembly: System.Reflection.AssemblyDelaySign(False)>
<Assembly: System.Reflection.AssemblyKeyFile("mailpost.sn")>

One more note here, 1.0 looks in the current directory. 1.1 requires a full path to th key.

No comments: