Udostępnij za pośrednictwem


/MANIFEST (Create Side-by-Side Assembly Manifest)

/MANIFEST[:NO]

Remarks

/MANIFEST specifies that the linker should create a side-by-side manifest file. For more information about manifest files, see Manifest Files Reference.

The default is /MANIFEST.

Beginning with Visual Studio 2008, manifest files for executables contain a section that specifies User Account Control (UAC) information. If you specify /MANIFEST but specify neither /MANIFESTUAC nor /DLL, a default UAC fragment will be inserted into the manifest with the UAC level set to asInvoker. For more information about UAC levels, see /MANIFESTUAC (Embeds UAC information in manifest).

To change the default behavior for UAC, do one of the following:

  • Specify the /MANIFESTUAC option and set the UAC level to the desired value, or

  • Specify the /MANIFESTUAC:NO option if you do not want to generate a UAC fragment in the manifest.

If you do not specify /MANIFEST but do specify /MANIFESTDEPENDENCY comments, a manifest file will be created. A manifest file will not be created if you specify /MANIFEST:NO.

If you specify /MANIFEST, the name of the manifest file will be the same as the name of your output file, with .manifest appended to the file name. For example, if your output file name is MyFile.exe, the manifest file name will be MyFile.exe.manifest. If you specify /MANIFESTFILE:name, the name of the manifest will be what you specify in name.

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.

  2. Expand the Configuration Properties node.

  3. Expand the Linker node.

  4. Select the Manifest File property page.

  5. Modify the Generate Manifest property.

To set this linker option programmatically

See Also

Reference

Setting Linker Options

Linker Options