Skip to content

Latest commit

 

History

History
61 lines (37 loc) · 2.64 KB

delaysign-partially-sign-an-assembly.md

File metadata and controls

61 lines (37 loc) · 2.64 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: /DELAYSIGN (Partially Sign an Assembly)
/DELAYSIGN (Partially Sign an Assembly)
11/04/2016
/delaysign
VC.Project.VCLinkerTool.DelaySign
/DELAYSIGN linker option
DELAYSIGN linker option
-DELAYSIGN linker option
15244d30-3ecb-492f-a408-ffe81f38de20

/DELAYSIGN (Partially Sign an Assembly)

/DELAYSIGN[:NO]

Arguments

NO
Specifies that the assembly should not be partially signed.

Remarks

Use /DELAYSIGN if you only want to place the public key in the assembly. The default is /DELAYSIGN:NO.

The /DELAYSIGN option has no effect unless used with /KEYFILE or /KEYCONTAINER.

When you request a fully signed assembly, the compiler hashes the file that contains the manifest (assembly metadata) and signs that hash with the private key. The resulting digital signature is stored in the file that contains the manifest. When an assembly is delay signed, the linker does not compute and store the signature, but reserves space in the file so the signature can be added later.

For example, using /DELAYSIGN allows a tester to put the assembly in the global cache. After testing, you can fully sign the assembly by placing the private key in the assembly.

See Strong Name Assemblies (Assembly Signing) (C++/CLI) and Delay Signing an Assembly for more information on signing an assembly.

Other linker options that affect assembly generation are:

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.

  2. Click the Linker folder.

  3. Click the Command Line property page.

  4. Type the option into the Additional Options box.

To set this linker option programmatically

  • See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.AdditionalOptions%2A.

See also

MSVC linker reference
MSVC Linker Options