Skip to content

[10.0 RC 2] Restore fails with "Operation is not valid due to the current state of the object" #51357

@roji

Description

@roji

Repro steps:

Result:

/Users/roji/.dotnet/sdk/10.0.100-rc.2.25502.107/NuGet.targets(196,5): error Operation is not valid due to the current state of the object.

See the last commit on that branch; reverting the addition of the net10.0 TFM to the PgVector.UnitTests.csproj project makes the error go away.

It seems that adding net10.0 to other test projects in the same directory works, as long as that project also targets net472 (and net8.0) - the moment I add net10.0 to a project which doesn't target net472 (like PgVector.UnitTests), the error starts occurring.

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