.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 winforms application by CLI: donet new winforms
- 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'