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

INuGetProjectService.GetInstalledPackagesAsync throws before receiving CPS project system nomination #10681

Closed
zivkan opened this issue Mar 23, 2021 · 0 comments · Fixed by NuGet/NuGet.Client#3959
Assignees
Labels
Category:Quality Week Issues that should be considered for quality week Functionality:SDK The NuGet client packages published to nuget.org Product:VS.Client Type:Bug

Comments

@zivkan
Copy link
Member

zivkan commented Mar 23, 2021

Details about Problem

NuGet product used (NuGet.exe | Visual Studio | MSBuild.exe | dotnet.exe): Visual Studio

Product version: 16.9

Worked before? If so, with which NuGet version: new API in 16.8

Repro steps and/or sample project

In VS 16.8, we introduced a new API INuGetProjectService.GetInstalledPackagesAsync, an async way to get installed packages for a project. The API's contract explicitly says that a result with a suitable status will be returned. However, if this project is queried before we receive nomination info, then the API is throwing an exception.

Verbose Logs

@zivkan zivkan added Product:VS.Client Functionality:SDK The NuGet client packages published to nuget.org Type:Bug Category:Quality Week Issues that should be considered for quality week labels Mar 23, 2021
@zivkan zivkan added this to the Sprint 2021-03 milestone Mar 23, 2021
@zivkan zivkan self-assigned this Mar 23, 2021
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 Functionality:SDK The NuGet client packages published to nuget.org Product:VS.Client Type:Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant