[.NET 11] CLI - Creating new MAUI Blazor Sample App from CLI is .NET 10 by default
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 290
Description
### Description
CLI - Creating new MAUI Blazor Sample App from CLI is .NET 10 by default
### Steps to Reproduce
1. Install the .NET 11 Preview3 from [here](https://dev.azure.com/dnceng/internal/_build/results?buildId=2943945&view=artifacts&type=publishedArtifacts)
2. Install MAUI workload from the rollback file along with the necessary feeds: [11.0.0-preview.3_rollback.json](https://github.com/user-attachments/files/26564155/11.0.0-preview.3_rollback.json)
3. Create an empty folder and open it on terminal/CMD
4. Run the command dotnet new maui-blazor --Empty
5. Go back to the folder and open the csproj on VS/VS Code
6. Observe that the default .NET SDK is .NET 10 instead of .NET 11
Actual Behavior:
The default .NET SDK version on the created MAUI Blazor Sample app from CLI is .NET 10
Expected Behavior:
The default .NET SDK version should match the SDK and MAUI version, in this case, .NET 11
### Version with bug
11.0.100-preview.3.26203.107
### Is this a regression from previous behavior?
Yes, this is a regression. The issue cannot be repro on .NET SDK version 11.0.100-preview.2.26154.117.
### Affected platforms
Windows, MacOS
Contributor guide
Assessment
This issue has not been assessed yet.