Skip to content

[.NET 10] CLI - Creating new MAUI with Sample using CLI fails to restore with NU1107 error #32198

@Marnie-Majait

Description

@Marnie-Majait

Description

Creating new MAUI Sample App fails to restore with NU1107 error

Steps to Reproduce

  1. Install the .NET 10 GA from here or windows: here and mac: here. Alternatively, you can use the PR Build for windows validation.
  2. Install MAUI workload from the rollback file along with the necessary feeds: rollback.json
  3. Create an empty folder and open it on terminal/CMD
  4. Run the command dotnet new maui --sample-content
  5. Project fails to be restored with 2 warnings and 1 error.

Actual Behavior:
Project fails to be restored with 2 warnings and 1 error.

Restoring /Users/vstester/Desktop/untitled folder 3/sample/sample.csproj:
/Users/vstester/Desktop/untitled folder 3/sample/sample.csproj : warning NU1608: Detected package version outside of dependency constraint: CommunityToolkit.Maui 11.1.1 requires Microsoft.Maui.Controls (>= 9.0.30 && < 10.0.0) but version Microsoft.Maui.Controls 10.0.0 was resolved.
/Users/vstester/Desktop/untitled folder 3/sample/sample.csproj : warning NU1608: Detected package version outside of dependency constraint: CommunityToolkit.Maui.Core 11.1.1 requires Microsoft.Maui.Core (>= 9.0.30 && < 10.0.0) but version Microsoft.Maui.Core 10.0.0 was resolved.
/Users/vstester/Desktop/untitled folder 3/sample/sample.csproj : error NU1107: Version conflict detected for Microsoft.Maui.Essentials. Install/reference Microsoft.Maui.Essentials 10.0.0 directly to project sample to resolve this issue .sample -> Microsoft.Maui.Controls 10.0.0 -> Microsoft.Maui.Controls.Core 10.0.0 -> Microsoft.Maui.Core 10.0.0 -> Microsoft.Maui.Essentials (>= 10.0.0) sample -> CommunityToolkit.Maui 11.1.1 -> CommunityToolkit.Maui.Core 11.1.1 -> Microsoft.Maui.Essentials (>= 9.0.30 && < 10.0.0).
Restore failed.
Post action failed.
Screen.Recording.2025-10-24.at.5.12.08.PM.mov

Expected Behavior:
Project can be successfully created without any warnings or errors.

Version with bug

.NET SDK 10.0.100

Is this a regression from previous behavior?

Yes, this is a regression. The issue cannot be repro on .NET SDK version 10.0.100-rc.2.25502.107.

Affected platforms

Windows, macOS

Metadata

Metadata

Assignees

Labels

csi-newi/regressionThis issue described a confirmed regression on a currently supported versionp/0Current heighest priority issues that we are targeting for a release.platform/macosmacOS / Mac Catalystplatform/windowst/bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions