/CLRIMAGETYPE (Specify Type of CLR Image)
Set the CLR image type in the linked image.
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
Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
Expand the Configuration Properties node.
Expand the Linker node.
Select the Advanced property page.
Modify the CLR Image Type property.
To set this linker option programmatically
- See CLRImageType.