Nuget packages download Javascript files to ~/Scripts
I prefer to keep my content organized in a ~/content folder, which contains
~/content/css ~/content/images ~/content/scripts ~/content/scripts/vendor (for packages/ downlaoded scripts) ~/content/scripts/site (my own site's JS)
How do I make Nuget download Javascript files to ~/content/scripts/vendor
?
Open %AppData%\NuGet folder, open existing NuGet. Config file. Edit repositoryPath key and set new destination.
The location of the default global packages folder. The default is %userprofile%\. nuget\packages (Windows) or ~/. nuget/packages (Mac/Linux).
nuget folder is used as a cache for packages downloaded to speed up project restore and compilation. It can safely be removed. Worst case, it will have to download the packages again in the future. Follow this answer to receive notifications.
There are two locations for the nuget. config file: in a . nuget folder inside your solution folder and directly in the solution folder (or any of its parent folders) The location that is accepted by the latest versions of NuGet is directly in the solution folder.
At the moment, NuGet doesn't support installing packages resources elsewhere than the default location. There's an existing NuGet work item that would cover this feature : #1914 - Allow package resource folders to be configurable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With