Warm tip: This article is reproduced from stackoverflow.com, please click
.net nuget visual-studio visual-studio-2019

How to show NuGet package dependencies?

发布于 2020-04-13 09:43:11

I'm using Visual Studio 2019. In a .NET Framework project, I want to show which packages an installed package depends on. How can this be done?

If I create a .NET Core project, this information seems easily available under the "Dependencies" item under Project in the Solution Explorer pane (one can expand and browse the hierarchy).

In a .NET project however, there exists a "References" instead of "Dependencies", but it cannot be expanded in the same way.

Questioner
HelloWorld
Viewed
62
Lance Li-MSFT 2020-02-03 11:22

Agree with Matt, what you want for now is not supported in .net framework projects. This feature is available only for new SDK format projects like .net core and .net standard projects. See similar issue here.

And as I know, there doesn't exist extensions which supports this behavior. So I'm afraid the answer is negative, we can't use nuget dependency tree in .net framework projects cause both VS IDE itself and VS extensions don't support this.

If you do need this feature, I recommend you can post your feature request in Developer Community Forum (Our User Voice forum). If it get enough votes, the Product Team would consider it seriously. Thanks for your help to make VS better :)