I want to retrieve the NuGet dependency DLL's that are registered in the project package.config from the package folder.
package.config (sample):
<?xml version="1.0" encoding="utf-8"?><packages><package id="Humanizer.Core" version="2.6.2" targetFramework="net472" /></packages>
Structure:
- Folder - ProjectFolder - packages.config <-- config file - Packages - Humanizer.Core.2.6.2 - lib - netstandard1.0 - Humanizer.DLL - netstandard2.0 - Humanizer.DLL - Solution
Now I can retrieve information from the package.config
to get the id + version together to know in which folder I need to be in the Packages
folder. Then I am sure there is a lib
folder so that is fine to. But then I get stuck. Cause the lib
folder contains a netstandard1.0
and/or netstandard2.0
(or others) folder while the package.config had only a targetFramework="247"
attribute left that does not match.
Any idea how I should handle this? Maybe am doing it all wrong?