Bundle does not render css asp.net mvc

5

I have my bundle

@Styles.Render("~/Content/css")

And it just stopped working, it does not render anything

The bundle is being registered in global.asax

  BundleConfig.RegisterBundles(BundleTable.Bundles);

And when you disable EnableOptimizations

  BundleTable.EnableOptimizations = false;

It renders css, but does not merge

    
asked by anonymous 02.09.2014 / 15:09

2 answers

2

Directories created by Visual Studio are managed by IIS, which prohibits the Bundling from creating temporary files.

Simply delete the /Content/css directory that the Bundling will run again.

    
02.09.2014 / 20:43
0

I also had this problem, and the solution went to the project settings and I checked the option: "Override application root URL"

    
07.08.2015 / 15:20