How do you create a .NET program using the new CSPROJ format in VS2017 (Or VS2019)

Viewed 2395

There's some great tools for converting the old CSPROJ format to the new CSPROJ format, such as this one. The new format supports things like direct references to NuGet packages and other cool stuff.

However, how do you create a brand new project in Visual Studio 2017 or Visual Studio 2019? If I create a .NET library project:

enter image description here

Then this project is created in the old format and has to be upgraded using the tool again. Can anyone shed some light on what projects support the new format vs. the old format?

1 Answers

The new CSPROJ is used by .NET Core and automatically created when creating new .NET Core project.

The trick that I have uses to to create a new style .NET Framework under Rider is (as suggested by a colleague):

  1. create a .NET Core project
  2. switch it to a .NET Framework

I think that this works only under VS.

Related