Skip to content

Latest commit

 

History

History
91 lines (70 loc) · 3.36 KB

delaysign-partially-sign-an-assembly.md

File metadata and controls

91 lines (70 loc) · 3.36 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager translation.priority.ht
-DELAYSIGN (Partially Sign an Assembly) | Microsoft Docs
11/04/2016
visual-studio-dev14
devlang-cpp
article
/delaysign
VC.Project.VCLinkerTool.DelaySign
C++
/DELAYSIGN linker option
DELAYSIGN linker option
-DELAYSIGN linker option
15244d30-3ecb-492f-a408-ffe81f38de20
11
corob-msft
corob
ghogen
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

/DELAYSIGN (Partially Sign an Assembly)

/DELAYSIGN[:NO]  

Remarks

where,

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 Setting Visual C++ Project Properties.

  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

Setting Linker Options
Linker Options