I have an ASP.Net MVC project and I want to implement bundling, but everything I can find on the internet directs me to open BundleConfig.cs
in App_Start
- however this file does not exist in my project. I have only three files in that folder: FilterConfig
, RouteConfig
and WebApiConfig
.
Bundle config wasn't generated when I created the solution (IIRC it was a blank ASP.NET MVC project at the beginning).
It seems like this should be really easy to do, but I just plain cannot figure it out.
P.S. Just to clarify to those not reading closely, this is for a MVC4/.Net 4.5 app created from scratch. The solution is marked below.
This question is related to
asp.net-mvc
asp.net-mvc-4
visual-studio-2013
If you are using "MVC 5" you may not see the file, and you should follow these steps: http://www.techjunkieblog.com/2015/05/aspnet-mvc-empty-project-adding.html
If you are using "ASP.NET 5" it has stopped using "bundling and minification" instead was replaced by gulp, bower, and npm. More information see https://jeffreyfritz.com/2015/05/where-did-my-asp-net-bundles-go-in-asp-net-5/
Source: Stackoverflow.com