From 452ab699abcbb108ca046c20afc3f70942c43544 Mon Sep 17 00:00:00 2001 From: Colin Robertson Date: Thu, 1 Apr 2021 16:38:12 -0700 Subject: [PATCH 1/3] Add EnableASAN to Known issues doc per Olga --- docs/sanitizers/asan-known-issues.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/sanitizers/asan-known-issues.md b/docs/sanitizers/asan-known-issues.md index 4221f026559..b3bb7e82fc2 100644 --- a/docs/sanitizers/asan-known-issues.md +++ b/docs/sanitizers/asan-known-issues.md @@ -61,6 +61,12 @@ The AddressSanitizer runtime doesn't release memory back to the OS during execut The *`clang_rt.asan*.dll`* runtime files are installed next to the compilers in *`%VSINSTALLDIR%\VC\Tools\MSVC\\bin\\\`*. These locations are on the path in debugging sessions, and in Visual Studio developer command prompts. These files are never placed in *`C:\Windows\System32`* or *`C:\Windows\SysWOW64`*. +## Custom Property Sheet support + +The Property Manager window in the Visual Studio IDE allows you to add custom *`.props`* files to your projects. Even though the **Enable Address Sanitizer** property (``) is shown, it's not honored by the build. That's because the custom *`.props`* files get included after *`Microsoft.cpp.props`*, which uses the `` value to set other properties. + +As a workaround, you can create a *`Directory.Build.props`* file in the root of your project to define the `` property. For more information, see [Customize C++ builds](/visualstudio/msbuild/customize-your-build#customize-c-builds). + ## See also [AddressSanitizer overview](./asan.md)\ From 0a0b9de114b261a1e329bc64a0c799503f3d7d78 Mon Sep 17 00:00:00 2001 From: Colin Robertson Date: Thu, 1 Apr 2021 16:46:43 -0700 Subject: [PATCH 2/3] capitalization --- docs/sanitizers/asan-known-issues.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sanitizers/asan-known-issues.md b/docs/sanitizers/asan-known-issues.md index b3bb7e82fc2..94788961746 100644 --- a/docs/sanitizers/asan-known-issues.md +++ b/docs/sanitizers/asan-known-issues.md @@ -61,7 +61,7 @@ The AddressSanitizer runtime doesn't release memory back to the OS during execut The *`clang_rt.asan*.dll`* runtime files are installed next to the compilers in *`%VSINSTALLDIR%\VC\Tools\MSVC\\bin\\\`*. These locations are on the path in debugging sessions, and in Visual Studio developer command prompts. These files are never placed in *`C:\Windows\System32`* or *`C:\Windows\SysWOW64`*. -## Custom Property Sheet support +## Custom property sheet support The Property Manager window in the Visual Studio IDE allows you to add custom *`.props`* files to your projects. Even though the **Enable Address Sanitizer** property (``) is shown, it's not honored by the build. That's because the custom *`.props`* files get included after *`Microsoft.cpp.props`*, which uses the `` value to set other properties. From 6218860208417bb52fc3fc3dd92a9a60ec7a4de4 Mon Sep 17 00:00:00 2001 From: Colin Robertson Date: Fri, 2 Apr 2021 18:49:53 -0700 Subject: [PATCH 3/3] Include version for support of netcore option --- .../reference/clr-common-language-runtime-compilation.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/build/reference/clr-common-language-runtime-compilation.md b/docs/build/reference/clr-common-language-runtime-compilation.md index c39c404b758..063fff6b89d 100644 --- a/docs/build/reference/clr-common-language-runtime-compilation.md +++ b/docs/build/reference/clr-common-language-runtime-compilation.md @@ -23,9 +23,13 @@ One or more of the following comma-separated arguments. With no options, **`/clr`** creates metadata for the component. The metadata can be consumed by other CLR applications, and enables the component to consume types and data in the metadata of other CLR components. For more information, see [Mixed (Native and Managed) Assemblies](../../dotnet/mixed-native-and-managed-assemblies.md). -- **`NetCore`** +::: moniker range="msvc-160" - **`/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. +- **`netcore`** + + Available starting in Visual Studio 2019 version 16.4, **`/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. + +::: moniker-end - **`nostdlib`**