Sunday, 12 February 2017

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?


Answer



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.


No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...