AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Using the VSCode instructions, a v3.1 project is created.

Open lebull opened this issue 5 years ago • 3 comments

Using the cli as instructed in this tutorial, dotnet new webapi -o TodoApi creates a 3.1 project.

image

image

The rest of the tutorial is incompatible with 3.1.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

lebull avatar Feb 23 '21 15:02 lebull

Select the 3.1 version of the tutorial in the version selector.

Rick-Anderson avatar Feb 23 '21 20:02 Rick-Anderson

Sorry, am I missing something? The 3.1 tutorial uses dependencies that are not compatible with 3.1.

image

image

And even then, shouldn't the 5.0 tutorial either include the cli command to create the 5.0 project (or mention that a 5.0 template is unavailable from the cli currently)?

lebull avatar Feb 24 '21 00:02 lebull

Yes, read about Global.Json

{
  "sdk": {
    "version": "3.1.301"
  }
}

Rick-Anderson avatar Feb 24 '21 00:02 Rick-Anderson