Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NuGet scripts to different directory

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?

like image 692
reach4thelasers Avatar asked Apr 03 '12 08:04

reach4thelasers


People also ask

How do I change the location of a NuGet package?

Open %AppData%\NuGet folder, open existing NuGet. Config file. Edit repositoryPath key and set new destination.

Where are NuGet package sources stored?

The location of the default global packages folder. The default is %userprofile%\. nuget\packages (Windows) or ~/. nuget/packages (Mac/Linux).

What is .NuGet folder?

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.

Where are .NET core NuGet packages stored?

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.


1 Answers

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.

like image 129
Alexandre Dion Avatar answered Oct 10 '22 17:10

Alexandre Dion