"Sequence contains no matching element" when using a bad TF #13772
Labels
Area:ErrorHandling
warnings and errors/log messages & related error codes.
Category:Quality Week
Issues that should be considered for quality week
Functionality:Restore
Priority:2
Issues for the current backlog.
Type:Bug
NuGet Product Used
MSBuild.exe
Product Version
MSBuild version 17.9.8+b34f75857 for .NET Framework
Worked before?
No
Impact
It's more difficult to complete my work
Repro Steps & Context
Error:
This happened when accidentally using:
This is clearly a user error, but the error message could be more helpful. At the very least it should point to the problematic project instead of the root project for the restore.
I can only get this specific error to repro under certain conditions which I'm not able to fully understand. eg it manifests this way when restoring from the root. When restoring the project directly I helpfully get:
I would guess it maybe only manifests when a projects depends on the problematic project? Not super sure though.
Attaching a debugger shows that the exception is thrown here:
And the stack in case it's helpful:
I can provide more specific details (specific internal repo and commit) offline if desired.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: