Transitive packages will soon be visible in NuGet Package Manager in Visual Studio

Transitive packages will soon be visible in Visual Studio from the NuGet package explorer. These are packages installed into your solution or projects because they are dependencies of packages you have explicitly installed.

According to NuGet on Twitter – “… We are wrapping up our experiment and will enable it for all early next year.” 💪🏻 …

Viewing transitive packages from the command line

One current way of viewing transitive packages is from the command line where we can can see all transitive packages for a solution when the solution is in our current CMD folder …

dotnet list yoursolutionname.sln package --include-transitive

or where we can see all transitive packages for a particular project once we are in the project folder …

dotnet list yourprojectname.csproj package --include-transitive

The output will look similar to below.
Click on the image for a larger view in a new window …

Leave a Reply

Your email address will not be published. Required fields are marked *