Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.9 KB

clrimagetype-specify-type-of-clr-image.md

File metadata and controls

40 lines (25 loc) · 1.9 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: /CLRIMAGETYPE (Specify Type of CLR Image)
/CLRIMAGETYPE (Specify Type of CLR Image)
05/16/2019
/CLRIMAGETYPE
VC.Project.VCLinkerTool.CLRImageType
/CLRIMAGETYPE linker option
-CLRIMAGETYPE linker option
04c60ee6-9dd7-4391-bc03-6926ad0fa116

/CLRIMAGETYPE (Specify Type of CLR Image)

Set the CLR image type in the linked image.

Syntax

/CLRIMAGETYPE:{IJW|PURE|SAFE|SAFE32BITPREFERRED}

Remarks

The linker accepts native objects and also MSIL objects that are compiled by using /clr. The /clr:pure and /clr:safe compiler options were deprecated in Visual Studio 2015 and are unsupported in Visual Studio 2017 and later. When mixed objects in the same build are passed, the verifiability of the resulting output file is, by default, equal to the lowest level of verifiability of the input modules. For example, if you pass a native image and a mixed mode image (compiled by using /clr), the resulting image will be a mixed mode image.

You can use /CLRIMAGETYPE to specify a lower level of verifiability, if that is what you need.

For information about how to determine the CLR image type of a file, see /CLRHEADER.

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. Select the Configuration Properties > Linker > Advanced property page.

  3. Modify the CLR Image Type property.

To set this linker option programmatically

  1. See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.CLRImageType%2A.

See also