When I create a new ASP.net MVC 5 project and add a view via scaffolding from a controller\'s action, Visual Studio always adds the Nuget package for Bootstrap and its depen
There are a few options that are available and that will satisfy your needs with varying degrees of overhead.
Use the default template and remove Bootstrap
References and select Manage NuGet Packages...This will solve the issue of Visual Studio restoring the files when you build, but does not permanently alter the default template. These dependencies are installed via NuGet, so just deleting the css/js will not remove the dependency your project has on Bootstrap, just the downloaded files. When NuGet does a package restore it is re-downloading the files you deleted, correctly restoring the dependency.
Export and re-import the default template
This is basically saving a modified copy of the default template and importing it as a new/different template. This does not modify the default template.
Similarly to the first suggestion, start a new project with the normal defaults and then uninstall everything you don't want, adjust the HTML and get things the way you want a default MVC template to be.
After this is done you can export the modified project as a new template following the directions for Customizing Templates.
Manually edit the default Visual Studio template
This will permanently modify the default template.
Default templates are stored in VSINSTALLDIR\Common7\IDE. We're looking for the WebTemplates folder. The folder I used for testing with Visual Studio 2015 (replace 14.0 with 12.0 if using 2013) was located at:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\WebTemplates\MVC\CSharp\1033\MvcBasicApplicationv5.0
MvcBasicApplication.cshtml.14.vstemplate file.<WizardData><packages> nodeViews folder to accomidate.You can maybe take a look ate this article: Creating a Custom Scaffolder for Visual Studio