Skip to content

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

Open
@Racer396

Description

@Racer396

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions