Search code examples
c#asp.netasp.net-mvcdnx

ASP net mvc site.css keeps showing even when not referenced


I created an Asp.net 5 web application via "yo aspnet". I downloaded a new bootstrap.min.css and added it in css folder. I then changed _Layout.cshtml and gulpfile.js to reference bootstrap.min.css instead of the default site.min.css (screenshot below).

enter image description here

enter image description here

The problem is when I run the site via dnx web the site still uses site.min.css even though no part of my code references site.min.css anymore. I'm not sure what is happening now?

enter image description here

If I manually change the site.min.css via devtools I can see the correct theme appply. enter image description here


Solution

  • Clear your browser cache and try to find site.css string on your whole solution.