Skip to content

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

@mattleibow

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions