What is delay signing ? How to do delay signing in c#?

What is delay signing ? How to do delay signing in c#?During development process you will need strong name keys to be exposed to developer which is not a good practice from security point of view. In that case you can assign the key later on and during development you an use delay signing

How to do delay signing in c#?

  • First obtain your string name keys using SN.exe.
  • Annotate the source code for the assembly with two custom attributes from System.Reflection: AssemblyKeyFileAttribute, which passes the nameof the file containing product key as a parameter to its constructor. AssemblyDelaySigningAttribute, which indicate that delay signing, is being using by passing true as a paramenter to its constructor

[assembly:AssemblyKeyFileAttribute(“myKey.snk”)]
[assembly:AssemblyDelaySigningAttribute(true)]

 


Leave a Reply

Your email address will not be published. Required fields are marked *