Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (31 sloc) 1.92 KB
title f1_keywords helpviewer_keywords
-publicsign (C# Compiler Options)
-publicsign compiler option [C#]
publicsign compiler option [C#]
/publicsign compiler option [C#]

-publicsign (C# Compiler Options)

This option causes the compiler to apply a public key but does not actually sign the assembly. The -publicsign option also sets a bit in the assembly that tells the runtime that the file is actually signed.






The -publicsign option requires the use of the -keyfile or -keycontainer. The keyfile or keycontainer options specify the public key.

The -publicsign and -delaysign options are mutually exclusive.

Sometimes called "fake sign" or "OSS sign", public signing includes the public key in an output assembly and sets the "signed" flag, but doesn't actually sign the assembly with a private key. This is useful for open source projects where people want to build assemblies which are compatible with the released "fully signed" assemblies, but don't have access to the private key used to sign the assemblies. Since almost no consumers actually need to check if the assembly is fully signed, these publicly built assemblies are useable in almost every scenario where the fully signed one would be used.

To set this compiler option in the Visual Studio development environment

  1. Open the Properties page for the project.
  2. Modify the Delay sign only property.

See also

You can’t perform that action at this time.