Skip to content

.Net 6 support for CLI Build #804

Discussion options

You must be logged in to vote

Officially, there is not formal support nor a TFM target for net6.0; however, many people have gotten it to work without issue (at least not reported). I attempted to repo your scenario and it worked without issue for me. Here's what I used:

dotnet new console --name ApiVersioningConsole
cd ApiVersioningConsole
dotnet add package Microsoft.AspNetCore.Mvc.Versioning
dotnet build

The commands all succeed. Here's what the final project looks like:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net6.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

  <ItemGroup>
    <P…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by commonsensesoftware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants