I am looking for a way to list all NuGet libraries I have (manually) in ASP.Net Core 2.2.
I found a solution for .NET in general which involves parsing the packages.config
. When launching via IIS however, the executable is in a completely different directory, preventing me from easily accessing the file. Another option was to get all assemblies , but this includes System.*
assemblies and custom assemblies I do not want to display.
Parse the output of dotnet list package
. I think it can be done with 3 or 4 regexes. There's ongoing, but low-priority work to make it work with packages.config projects projects, and there's already a request to make the output more easily parsable .
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.