Skip to content

There is no way to query PackageReferences in a project #949

@gardnerjr

Description

@gardnerjr

There are API's to Add or Remove a PackageReference, but there is currently no way to ask if a package reference exists in a project, and if so, what version is it. There's also no way to just enumerate all existing package references.

So you can't positively know if a package is referenced in a project until you have successfully restored packages in a project, at which time existing NuGet related package services will have installed version information and let you enumerate installed packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-External-CPSOwned by CPS and not this repo. Likely be closed in lieu of issue filed against VS platform.Parity-Legacy-APIMissing or behavior differences in APIs from the legacy project system.Triage-ApprovedReviewed and prioritized

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions