Using the VSCode instructions, a v3.1 project is created.
Using the cli as instructed in this tutorial, dotnet new webapi -o TodoApi creates a 3.1 project.


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.
- ID: 583ae3e7-5915-f22b-e54c-6c100cf2a7da
- Version Independent ID: 95f2549e-29f9-e31a-b4d0-432b971643ff
- Content: Tutorial: Create a web API with ASP.NET Core
- Content Source: aspnetcore/tutorials/first-web-api.md
- Product: aspnet-core
- Technology: aspnetcore-tutorials
- GitHub Login: @Rick-Anderson
- Microsoft Alias: riande
Select the 3.1 version of the tutorial in the version selector.
Sorry, am I missing something? The 3.1 tutorial uses dependencies that are not compatible with 3.1.


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)?
Yes, read about Global.Json
{
"sdk": {
"version": "3.1.301"
}
}