打开bootstrap.min.css会导致VS2010崩溃 [英] Opening bootstrap.min.css crashes VS2010
问题描述
任何想法为什么打开一个缩小版本的bootstrap.min.css会崩溃VS2010?它不会发生与非缩小的文件。我知道...我知道..一个有效的解决方案可能是不打开bootstrap.min.css在VS2010这是类似的意见,当我告诉我的医生,这伤害了我当我这样做 - 但严重的人,是有一些已知的问题VS2010。我认为也许它也与resharper运行有关,但我还没有深入挖掘。
Any idea why opening up a minified version of bootstrap.min.css would crash VS2010? It doesn't happen with non-minified file. I know... I know.. a valid solution might be "don't open up bootstrap.min.css in VS2010"-- which is similar advice I got when I told my doctor that it hurts me "when I do this"-- but seriously folks, is there some known issue with VS2010. I'm thinking maybe it's also got something to do with resharper running- but I have yet to dig that deep.
如果这是正确的,这在VS2010中已修复。
If this is correct, this was fixed in VS2010.
推荐答案
从,因为我有同样的问题。
I know where you're coming from, because I've had the same problem.
在visualstudio用户语音链接中,Mads K.说,这是在VS11中修复的。
所以修复是在Visual Studio 2012中,而不是在VS2010。
https:// en.wikipedia.org/wiki/Microsoft_Visual_Studio#Version_history
In the visualstudio uservoice link, Mads K. says, "This is fixed in VS11".
So the fix is in Visual Studio 2012, not in VS2010.
https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Version_history
但是,我可以建议另一种方法来解决问题吗?
However, might I suggest another method of attacking the problem?
完全忽略 .min
档案。
完全忽略它,因为:
(1) .min
css文件,即使我们想要编辑它,也是一个痛苦的编辑。至少这是我的经验。
(2)如果您使用 Microsoft ASP.NET Web Optimization Framework ,您可以使用捆绑和缩小,因此有不需要使用 .min
文件,因为优化框架将为你做缩微,即使在VS2010 .NET 4.0。然后,您可以编辑未缩小 .css文件,并让.NET为您进行缩小。从我的角度来看,这是一个双赢。
Completely ignore it, because:
(1) The .min
css file, even when we do want to edit it, is a pain to edit. At least that has been my experience.
(2) If you use the Microsoft ASP.NET Web Optimization Framework, you can use bundling and minification, so then there is no need to work with .min
files, because the Optimization framework will do the minification for you, even in VS2010 .NET 4.0. Then you can edit the un-minified .css file, and let .NET do the minification for you. It's a win-win from my perspective.
有一件事要记住,如果你应该碰巧有一堆样式表,合并为一个单一的.css文件是Internet Explorer的限制: http://support.microsoft.com/kb/262161 。
One thing to keep in mind if you should happen to have a bunch of stylesheets with a bunch of rules that you want to bundle into one single .css file are the limitations of Internet Explorer: http://support.microsoft.com/kb/262161.
一些相关文章:
1. http://kwilson.me.uk/blog/enabling-bundling-and-minification-support-in-a-net-4-application/
2. http:// igorzelmanovich。 blogspot.com/2012/09/using-aspnet-bundling-and-minification.html
3. http://www.dotnet-tricks.com/Tutorial/mvc/0a9M050113-Bundling-and-minification- in-MVC3-and-Asp.Net-4.0.html
这篇关于打开bootstrap.min.css会导致VS2010崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!