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

dotnet list package supports showing package dependencies declared in packages.config #8209

Open
Racer396 opened this issue Jun 6, 2019 · 5 comments
Labels
Platform:Xplat Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Style:Packages.Config Type:Feature
Milestone

Comments

@Racer396
Copy link

Racer396 commented Jun 6, 2019

Hello.
I want to make solution verifier to nuget dependencies in C# app.

If we have projects whats compile to one folder, and
ProjectA -> PackageName 1.0.0
ProjectB -> PackageName 2.0.0
In output folder we get only one .dll, and its may to runtime exception when one of projects try use some method in PackageName with other project version. (Like ProjectB use PackageName 1.0.0)

I want to build full dependencies graph for all project in solution and verify it before build and run my program.
How can i do this?

I can manually parse .csproj for packets, and go to .nuspec of each packages, get dependencies, and build tree manually, with comparing nuspec framework dependencies and .csproj framework, but i think there is a more correct way.

@Racer396 Racer396 changed the title NuGet C# Dependecies graph NuGet C# Dependencies graph Jun 6, 2019
@rrelyea
Copy link
Contributor

rrelyea commented Jun 6, 2019

Dotnet list package is a start. (Only works in packageref now—adding packages.config support soon)

@Racer396
Copy link
Author

Racer396 commented Jun 6, 2019

Dotnet list package is a start. (Only works in packageref now—adding packages.config support soon)

Thx.

  1. How soon will be added .config support?
  2. Are there other ways to do this? Or Nuget.Core and Nuget.Client doesn't support this features and only use dotnet list package?

@rrelyea
Copy link
Contributor

rrelyea commented Jun 11, 2019

We hope to ship dotnet list package support for packages.config as early as NuGet 5.2.
No other "built-in" was to do this yet.

@rrelyea rrelyea changed the title NuGet C# Dependencies graph dotnet list package supports showing package dependencies declared in packages.config Jun 11, 2019
@zivkan zivkan modified the milestones: 5.2, 5.3 Jul 1, 2019
@rrelyea rrelyea modified the milestones: 5.3, 5.4 Aug 12, 2019
@rrelyea rrelyea modified the milestones: 5.4, Backlog Oct 31, 2019
@rrelyea rrelyea removed their assignment Dec 4, 2019
@nkolev92 nkolev92 added Type:Feature Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. labels Apr 23, 2020
@scharnyw
Copy link

Any update on this after 3 years? The inconsistency in tooling between PackageReference and packages.config is a still a big frustration after all these time

@notofug
Copy link

notofug commented Jan 3, 2024

dotnet list with support for packages.config would be great in combo with #10852

even more so if C++ projects with nugets via packages.config also are allowed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform:Xplat Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Style:Packages.Config Type:Feature
Projects
None yet
9 participants