Skip to content

Creating WPF application with errors and targeting is still 6.0 by CLI after installing the latest .Net 7.0 SDK build #5949

@vishalmsft

Description

@vishalmsft

.NET Core Version:

.Net SDK 7.0.100-alpha.1.21527.14

More Info:

This issue can also reproduce when creating WPF, console application by CLI

To Reproduce

  1. Install the latest .Net 7.0 SDK build from main branch in https://github.com/dotnet/core-sdk
  2. Create wpf application by CLI: donet new wpf
  3. Open application's csproj file to check TargetFramework

Actual result:

In step2, create app successfully with some errors by CLI
image
In step3, the application's TargetFramework is still 'net6.0-windows', not 7.0
image

Expected result:

Creating application by CLI successfully with no any errors and TargetFramework is right version 'net7.0-windows'

Info

#dotnet/winforms/issues/6246
#dotnet/winforms/pull/6206
#dotnet/installer/pull/12946

Metadata

Metadata

Labels

BugProduct bug (most likely)

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions