title: How to disable VS compile warning "class or css class is not defined"
body: <p>In VS 2008, when I compile, I get a large series of <strong>The class or CssClass value is not defined</strong> messages.</p>
  
  <p>How do I get the error/warning code (something like "C0167") for that message, so I can disable it?</p>
  
  <p>Answers that <em>won't work</em>:</p>
  
  <ul>
  <li>The compiler gives you the warning number.  <em>No, it doesn't.</em></li>
  <li>See the list of MSDN compiler errors (found at <a href="http://msdn.microsoft.com/en-us/library/5feh24w0%28VS.71%29.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/5feh24w0%28VS.71%29.aspx</a>).  <em>No, it's not there.</em></li>
  <li>Look at the Output tab for "Build".  <em>No, warnings don't seem to be listed there.</em></li>
  <li>Right click and select Show Error Help.  <em>No, this just brings up Markup Validation in Visual Web Developer, which doesn't give me the code I need.</em></li>
  <li>Put a fake &lt;%=If false Then %> block with a fake reference to the css include file on every page, to stop the error.  <em>Well, yes, I could do that, but that defeats the purpose of not just putting my reference directly on all my pages to begin with.  I'm asking for how to <strong>suppress the message</em></strong>.</li>
  <li>Turn off all html validation in Tools/Options and then the Text Editor / HTML / Validation "Show Errors" checkbox.  <em>Yes, that's what I might have to do, but it's a shame to turn off all html validation, much of which is very helpful, especially to junior developers.</em></li>
  </ul>
  
  <p>I'm in a vb.net project, using sp1.</p>
  
  <p>Thanks!</p>