简体   繁体   English

调试ASP.NET MVC应用程序时,如何显示对Site.css的更改?

[英]When debugging an ASP.NET MVC app, how can I get my changes to Site.css to show up?

I'm debugging on my development machine and when I make changes to the css file, they don't show up and I can't figure out why. 我正在开发机器上调试,当我对css文件进行更改时,它们没有显示,我也弄不清原因。 I'm using firebug and inspecting the css and the changes are not there. 我正在使用Firebug并检查CSS,并且更改不存在。 I've tried clear private data and building the project first then running it but nothing seems to work. 我尝试清除私有数据并先构建项目,然后再运行它,但似乎没有任何效果。

Thanks. 谢谢。

使用CTL + F5强制完全刷新-它将强制浏览器忽略任何缓存的内容。

It's probably caching your css file. 它可能正在缓存您的CSS文件。 Either modify your setting in the browser to stop caching, or add a unique identifier to the css file like Site.css?d=011509. 修改浏览器中的设置以停止缓存,或者将唯一标识符添加到CSS文件中,例如Site.css?d = 011509。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM