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

Handle no nomination info in VS GetInstalledPackagesAsync API #3959

Merged
merged 1 commit into from
Mar 25, 2021

Conversation

zivkan
Copy link
Member

@zivkan zivkan commented Mar 23, 2021

Bug

Fixes: NuGet/Home#10681

Regression? Last working version: new API in VS 16.8

Description

Make CpsPackageReferenceProject throw a new ProjectNotNominatedException, rather than the generic InvalidOperationException, and catch it in GetInstalledPackagesAsync's implementation.

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@zivkan zivkan requested a review from a team as a code owner March 23, 2021 17:13
Copy link
Contributor

@erdembayar erdembayar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zivkan
Looks good. Only 2 questions about how nomination works?

@zivkan zivkan merged commit 0fd1b7b into dev Mar 25, 2021
@zivkan zivkan deleted the dev-zivkan-GetInstalledPackagesAsync-NoNomination branch March 25, 2021 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

INuGetProjectService.GetInstalledPackagesAsync throws before receiving CPS project system nomination
4 participants