Skip to content

[SQLProjects] NuGet restore loop with centrally managed packages #1065

@codijk

Description

@codijk

Describe the bug

When updating the CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects package in a Directory.Packages.props file, Visual Studio gets in a nuget restore loop.

A minimal reproduction has been created, which can be found here:
AspireNuGetLoop.zip

Regression

9.9.0 with .NET 9

Steps to reproduce

1. Open the provided solution
2. See the nuget restore loop happen.
3. Move from centrally managed packages to defining them in the CSPROJ directly.
4. Notice that the restore and build succeed.

Expected behavior

Works the same as when not using a Directory.Packages.props file.

Screenshots

Image

IDE and version

Other

IDE version

VS 2026

Nuget packages

CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects (13.0.0)

Additional context

No response

Help us help you

No, just wanted to report this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions