.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
- Install the latest .Net 7.0 SDK build from main branch in https://github.com/dotnet/core-sdk
- Create wpf application by CLI: donet new wpf
- Open application's csproj file to check TargetFramework
Actual result:
In step2, create app successfully with some errors by CLI

In step3, the application's TargetFramework is still 'net6.0-windows', not 7.0

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