Differences between /clr and /clr:netcore + net6.0

713 Views Asked by At

I have a managed C++ project in Visual Studio 2022 (v143) where I've used the following in the settings (Configuration Properties > Advanced):

**Attempt #1:**
Common Language Runtime Support: .NET Core RUntime Support (/clr:netcore)
.NET Core Target Framework: net6.0

**Attempt #2:**
Common Language Runtime Support: Common Language Runtime Support (/clr)
.NET Core Target Framework: 

Each of these attempts worked when used by a C#-.NET 6.0 project. Is there a difference between these two configurations? Is one preferrable to the other? Thanks in advance!

0

There are 0 best solutions below