Skip to content

Commit 04f81cc

Browse files
author
Colin Robertson
committed
Make a more targeted set of changes
1 parent 310cc4e commit 04f81cc

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

docs/build/reference/clr-common-language-runtime-compilation.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "/clr (Common Language Runtime compilation)"
33
description: "Use the Microsoft C++ compiler option /clr to compile C++/CLI and C++ code as managed code."
4-
ms.date: 10/25/2020
4+
ms.date: 10/27/2020
55
f1_keywords: ["/CLR", "VC.Project.VCNMakeTool.CompileAsManaged", "VC.Project.VCCLCompilerTool.CompileAsManaged"]
66
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"]
77
ms.assetid: fec5a8c0-40ec-484c-a213-8dec918c1d6c
@@ -25,7 +25,7 @@ One or more of the following comma-separated arguments.
2525

2626
- **`NetCore`**
2727

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.
2929

3030
- **`nostdlib`**
3131

@@ -55,7 +55,7 @@ One or more of the following comma-separated arguments.
5555

5656
## Remarks
5757

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).
5959

6060
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).
6161

@@ -103,6 +103,9 @@ Use ildasm.exe to view metadata.
103103

104104
1. Modify the **Common Language Runtime Support** property. Choose **OK** to save your changes.
105105

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+
106109
### To set this compiler option programmatically
107110

108111
- See <xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.CompileAsManaged>.

0 commit comments

Comments
 (0)