Is it possible to stop Visual Studio 2008 from failing to build on CSS errors?

I have an external stylesheet that has specific IE-hacks. Every so often my site will fail to build due to these hacks (it is the hash-hack; for example #margin-top:-2px;). This is the error:

Unexpected character sequence. Expected a property name for the "<property> : <value>" declaration

I haven't found out a concrete way to get the errors to stop, VS2008 just seems to stop caring after a while. I found this article, but I am unsure of how to edit the files properly so this "error" (since it is legal syntax) will not pop up again.

Answers


I'm not sure about 2008, but in 2005 (IIRC), you can go to:

 Tools | Options | Text Editor | CSS | CSS Specific

and then untick Detect Errors

I remember having exactly the same problem on 100% valid CSS which MS didn't recognise (big shock), flicked this switch and forgot about the problem forever more.


Need Your Help

IBAction to subview to check if image is hidden

ios xcode ios5 ibaction

I am trying to check if a image of a subview is hidden or not, by clicking a button. The log does display but i cant get the hidden status of the image somehow.

Analyze a video's pixel data in Flash

actionscript-3 flash video ffmpeg

I'm using FFmpeg to do some video analysis on my PC but I'd like to see if I can do something similar in the browser using Flash.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.