C++/CLI , .NET 5.0, TargetFrameworkVersion

Pierre Chatelier 81 Reputation points
2020-11-12T06:55:44.213+00:00

Now that .NET 5.0 is released along with VS 2019 16.8, I would like to compile some C++/CLI code with this new version.

But I cannot guess the <TargetFrameworkVersion> value to set in the vcxproj to enable .NET 5.0.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,144 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 85,546 Reputation points
    2020-11-12T07:43:59.883+00:00

    I installed the SDK 5 and I get :

    <TargetFramework>net5.0</TargetFramework>

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.