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.