NuGet scripts to different directory

reach4thelasers picture reach4thelasers · Apr 3, 2012 · Viewed 14.5k times · Source

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?

Answer

Alexandre Dion picture Alexandre Dion · Apr 3, 2012

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.