Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Restore all nugets and their dependencies to a flat folder

$
0
0

I have a c# project, I need to be able to restore all its nugets (and all their dependencies) to a folder and then load dynamically (using reflection) one DLL.

This single DLL might depend on other dlls that I restored (from the nugets) so I prefer having everything in the same folder.

When I run dotnet restore I get all the nugets but each package in its own folder.

I don't want to build the project, just restore.

I want to get all the dlls dropped into a single folder and also I want a specific target framework, say .net5. So if the package supports more than one, I don't want the rest.

Any suggestions?

Many thanks!Gilad


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>