Default javaScript directory for Visual Studio with NuGet

I need help organizing js files in VS.

So my problem is that VS (MVC) put all js files by default in the script directory, but I also have js created by me in a subdirectory, like this:
enter image description here

Now my problem is that when I open the scripts folder, the js files installed by NuGet take up 2-3 screens in length, so I either have to open / close them each time, or scroll, like not tomorrow.

So my question is: are there any good solutions? How to move all files to a subdirectory and change each package, as well as the NuGet configuration, or should I create a separate script directory for my custom js files? Any good ideas?

+5
source share
2 answers

You can place and use as many subdirectories you want for your own scripts.

With Bundle.IncludeDirectory, all of your scripts will be added to the bundle without specifying multiple packages.

As for nuget, I don’t think you can (re) place these scripts in your chosen location.

See fooobar.com/questions/64079 / ...

+1
source

Unfortunately, you cannot change the default folder that NuGet downloads. He is the author of the NuGet package, which decides where it will be installed.

An alternative is to use Bower . With it, you can control where the files are downloaded ( look at this question ).

Or, as you said, move your own javascripts to another folder and forget about the standard.

+1
source

Source: https://habr.com/ru/post/1240534/


All Articles