Supressing CSS Errors in Visual Studio 2010

While attempting to migrate some older, legacy ASP.Net pages from VS 2005 to VS 2010 I started getting the following errors:

Validation (CSS 2.1): 'set-focus' is not a known CSS property name.

These were fatal errors and were preventing me from making any further progress. Given that, at this point, I don’t really care if the HTML validates without errors I went looking for a way to prevent Visual Studio from producing these errors.  I finally found it in Tools | Options | Text Editor | CSS | Miscellaneous.  Simply uncheck the Detect Errors box.

Leave a Reply