Skip to content

[.NET 11] CLI - Creating new MAUI Blazor Sample App from CLI is .NET 10 by default #34873

@Winnie-ZLR

Description

@Winnie-ZLR

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
  2. Install MAUI workload from the rollback file along with the necessary feeds: 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
Image

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

Metadata

Metadata

Labels

csi-newi/regressionThis issue described a confirmed regression on a currently supported versionplatform/macosmacOS / Mac Catalystplatform/windowst/bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions