Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore task dumps stack because TaskCanceledException should be OperationCanceledException #12700

Closed
danmoseley opened this issue Jun 26, 2023 · 0 comments · Fixed by NuGet/NuGet.Client#5276
Labels
Category:Quality Week Issues that should be considered for quality week Community PRs (and linked Issues) created by someone not in the NuGet team Functionality:Restore Priority:2 Issues for the current backlog. Type:Bug
Milestone

Comments

@danmoseley
Copy link

Moving from dotnet/msbuild#7145

The RestoreTask tries to account for a cancellation token, but in its catch for it, it checks for a TaskCanceledException instead of an OperationCanceledException.

This catch should be for OperationCanceledException thrown here.

@nkolev92 nkolev92 added Priority:2 Issues for the current backlog. Category:Quality Week Issues that should be considered for quality week Community PRs (and linked Issues) created by someone not in the NuGet team labels Jun 26, 2023
@nkolev92 nkolev92 added this to the 6.7 milestone Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category:Quality Week Issues that should be considered for quality week Community PRs (and linked Issues) created by someone not in the NuGet team Functionality:Restore Priority:2 Issues for the current backlog. Type:Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants