Search code examples
asp.netvisual-studiovs-web-application-project

ASP.NET web application is not creating a scripts folder


Why is Visual Studio not automatically making a "scripts" folder whenever I create an ASP.NET Web Application? This folder usually contains Bootstrap and jQuery directories.

Here's a list of the folders that do get created.


Solution

  • It is due to the project template you selected.

    The ASP.NET Core project templates have bootstrap and jQuery removed, which is why you do not see the Scripts folder.

    If you choose "traditional" templates which contains (.NET Framework) in template name, such as the ASP.NET Web Application (.NET Framework) template, then you will see the Scripts folder:

    traditional template with Scripts folder

    A rule of thumb is that all project templates with (.NET Framework) target the full .NET Framework and behave the same as the pre-.NET Core age.