简体   繁体   中英

How to show NuGet package dependencies?

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.

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 inDeveloper 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 :)

You can bifurcate by this way:

在此处输入图片说明

  • Right click on your project.
  • Select Manage Nuget Packages option.
  • Select "Installed" tab which shows you your added NuGet packages.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM