Skip to content

[BUG] .NET 10 projects fail to restore #2921

Closed

Description

@mattleibow

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

% dotnet restore
    MauiApp1.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.
    MauiApp1.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.
    MauiApp1.csproj : error NU1107: 
      Version conflict detected for Microsoft.Maui.Essentials. Install/reference Microsoft.Maui.Essentials 10.0.0 directly to project MauiApp1 to resolve this is
      sue. 
       MauiApp1 -> 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) 
       MauiApp1 -> CommunityToolkit.Maui 11.1.1 -> CommunityToolkit.Maui.Core 11.1.1 -> Microsoft.Maui.Essentials (>= 9.0.30 && < 10.0.0).

Expected Behavior

No warnings or errors

Steps To Reproduce

  1. dotnet new maui --sample-content
  2. dotnet restore
  3. Observe build warnings and errors.

Link to public reproduction project repository

dotnet new maui --sample-content

Environment

- .NET MAUI CommunityToolkit: All
- OS: All
- .NET MAUI: .NET 10

Anything else?

No response

Activity

  1. added
    bug
    on Oct 28, 2025
  2. mattleibow commented on Oct 28, 2025

    @mattleibow
    Author

    Should be fixed with: #2902

  3. TheCodeTraveler commented on Oct 28, 2025

    @TheCodeTraveler
    Collaborator

    Hey Matt! We don't support preview releases.

    We'll release .NET 10 support when it GAs next month.

  4. mattleibow commented on Oct 28, 2025

    @mattleibow
    Author

    One issue is that since this is used in the maui templates, the GA templates will be using the older versions and right now has error during restore.

    Is there a way to maybe get some stable builds released so that maui can use that in the maui stable release?

    I know this makes things more complex, but it is sort of chicken and egg. We need stable, but you need stable, so we must go to the stables together.

    I am currently disabling warnings and working around errors in the GA templates: dotnet/maui#32251

  5. TheCodeTraveler commented on Oct 29, 2025

    @TheCodeTraveler
    Collaborator

    Got it.

    Ok, I'll cherry-pick the commit from our .NET 10 PR where we remove the NuGet restriction on Microsoft.Maui.Controls v10.x.x and I'll squeeze it into our upcoming release.

    I do recommend updating the CommunityToolkit.Maui dependency in the .NET 10 templates to CommunityToolkit.Maui v13.0.0 which is the version that will support .NET 10, because I can't promise that CommunityToolkit.Maui v12.x is compatible with .NET 10.

  6. mattleibow commented on Oct 29, 2025

    @mattleibow
    Author

    Ah ok. Thanks for that. We should better communicate things. Please feel free to open an issue saying "up the templates now peeps" if you see we are not doing that.

    If there is a preview version to test with during the RC stages, then we can also make sure our testing happens on the MCT as well as all of the Syncfusion controls work as expected.

  7. TheCodeTraveler commented on Oct 30, 2025

    @TheCodeTraveler
    Collaborator

    No worries Matt! We've never added a mechanism in our release pipeline for preview releases.

    This will be included in the next release, CommunityToolkit.Maui.12.3.0.

    Completed. 367b738

  8. locked and limited conversation to collaborators on Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugunverified

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions