Skip to content

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

Closed

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

Activity

  1. added
    t/bug
    on Oct 24, 2025
  2. added
    platform/macos
    i/regression
    on Oct 24, 2025
  3. jfversluis commented on Oct 24, 2025

    @jfversluis
    Member

    This is due to the .NET MAUI Community Toolkit not having a .NET MAUI 10 compatible version yet. Blocked by that for the time being. This will probably be released close to .NET 10 GA.

  4. self-assigned this
    on Oct 24, 2025
  5. jonathanpeppers commented on Oct 27, 2025

    @jonathanpeppers
    Member

    Does this workaround the error?

    <PackageReference Include="Microsoft.Maui.Essentials" Version="10.0.0" />

    As a backup plan, we can list as a known issue.

  6. Marnie-Majait commented on Oct 28, 2025

    @Marnie-Majait
    Author

    Does this workaround the error?

    As a backup plan, we can list as a known issue.

    I've tried to add this after creating the project, the restore, build and debug succeeded, however the warnings are still there:

    Image
  7. added
    p/0
    on Nov 3, 2025
  8. locked and limited conversation to collaborators on Dec 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

csi-newi/regressionp/0platform/macosplatform/windowst/bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions