You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
helpviewer_keywords: ["cl.exe compiler, common language runtime option", "-clr compiler option [C++]", "clr compiler option [C++]", "/clr compiler option [C++]", "Managed Extensions for C++, compiling", "common language runtime, /clr compiler option"]
7
7
ms.assetid: fec5a8c0-40ec-484c-a213-8dec918c1d6c
@@ -25,7 +25,7 @@ One or more of the following comma-separated arguments.
25
25
26
26
-**`NetCore`**
27
27
28
-
**`/clr:NetCore`** creates metadata for the component. The metadata can be consumed by other .NET Core applications, and enables the component to consume types and data in the metadata of other .NET Core components.
28
+
**`/clr:NetCore`** creates metadata and code for the component using the latest cross-platform .NET framework, also known as .NET Core. The metadata can be consumed by other .NET Core applications. And, the option enables the component to consume types and data in the metadata of other .NET Core components.
29
29
30
30
-**`nostdlib`**
31
31
@@ -55,7 +55,7 @@ One or more of the following comma-separated arguments.
55
55
56
56
## Remarks
57
57
58
-
Managed code is code that can be inspected and managed by the CLR. Managed code can access managed objects. For more information, see [`/clr`Restrictions](clr-restrictions.md).
58
+
*Managed code* is code that can be inspected and managed by the CLR. Managed code can access managed objects. For more information, see [`/clr`Restrictions](clr-restrictions.md).
59
59
60
60
For information about how to develop applications that define and consume managed types in C++, see [Component Extensions for Runtime Platforms](../../extensions/component-extensions-for-runtime-platforms.md).
61
61
@@ -103,6 +103,9 @@ Use ildasm.exe to view metadata.
103
103
104
104
1. Modify the **Common Language Runtime Support** property. Choose **OK** to save your changes.
105
105
106
+
> [!NOTE]
107
+
In the Visual Studio IDE, the **`/clr`** compiler option can be individually set on the **Configuration Properties** > **C/C++** > **General** page of the Property Pages dialog. However, we recommend you use a CLR template to create your project. It sets all of the properties required for successful creation of a CLR component. Another way to set these properties is to use the **Common Language Runtime Support** property on the **Configuration Properties** > **Advanced** page of the Property Pages dialog. This property sets all the other CLR-related tool options at once.
108
+
106
109
### To set this compiler option programmatically
107
110
108
111
- See <xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.CompileAsManaged>.
0 commit comments