Reputation: 4471
I need to generate a dependency tree (or at least a dependency list) of .NET Framework 4.6.1. project. I need to deliver such a list to the legal department of my company. It's a Windows application with package.config file. I am looking for a command which I can run in terminal to generate dependency tree or list, excluding .NET 4.6.1 runtime packages.
I was trying dotnet list package
, but it works only with .NET Core.
I was also trying to run combinations of NuGet commands: Get-Content
, Get-Package
, Select
. The output I receive is different from what I see in Visual Studio:
I would like to see the similar output in my console to Visual Studio window. How do you think I can solve my issue?
Upvotes: 2
Views: 4279
Reputation: 3332
you can make dotnet list package
and all the .NET CLI running fine with .NET Framework by converting your project to the new project format.
It will be much easier when you already converted to PackageReference and you can easily do it by notepad style editing your .csproj file.
I found this helpful in the past: https://natemcmaster.com/blog/2017/03/09/vs2015-to-vs2017-upgrade/
Upvotes: 3