Repository navigation
Don't bail on error when listing packages - #7671
Merged
Merged
Conversation
nkolev92
reviewed
Aug 31, 2026
nkolev92
reviewed
Sep 1, 2026
Member
|
This change tweaks the behavior of dotnet.exe with non-SDK projects. When running on a solution with non-SDK projects, now it won't fail fast anymore and it'll complete the operation for the rest of projects. Any concerns? Happy to chat offline if you want more details. |
Contributor
|
This PR has been automatically marked as stale because it has no activity for 7 days. It will be closed if no further activity occurs within another 30 days of this comment. If it is closed, you may reopen it anytime when you're ready again, as long as you don't delete the branch. |
nkolev92
approved these changes
Sep 11, 2026
jebriede
approved these changes
Sep 15, 2026
Nigusu-Allehu
approved these changes
Sep 15, 2026
kartheekp-ms
approved these changes
Sep 15, 2026
This was referenced Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Fixes: NuGet/Home#12817
Fixes: NuGet/Home#12520
Description
Solutions containing JavaScript projects (
.esproj) or Docker Compose projects (.dcproj) causedotnet list packagesto bail upon first failure, cutting off output from other valid projects. This is especially frustrating when usingdotnet list packages --outdatedto look for packages that I should bump.This PR only changes the fail-fast behavior to continue despite project errors. The solution is already loaded, we're just changing the rendering. This also adjusts the output error message to not incorrectly say that the package is a
packages.configproject. Note this also affects the output ofdotnet nuget whyin similar situations.This doesn't fix the
1exit code (that seemed to be a larger behavior change). And as other comments proposed in the issue,_IsProjectRestoreSupportedgetting changed to a no-op would need to be done in the javascript sdk, and thenlist packageswould need to honor it.PR Checklist