In VS 2008, when I compile, I get a large series of The class or CssClass value is not defined messages.
How do I get the error/warning code (something like "C0167") for that message, so I can disable it?
Answers that won't work:
- The compiler gives you the warning number. No, it doesn't.
- See the list of MSDN compiler errors (found at http://msdn.microsoft.com/en-us/library/5feh24w0%28VS.71%29.aspx). No, it's not there.
- Look at the Output tab for "Build". No, warnings don't seem to be listed there.
- Right click and select Show Error Help. No, this just brings up Markup Validation in Visual Web Developer, which doesn't give me the code I need.
- Put a fake <%=If false Then %> block with a fake reference to the css include file on every page, to stop the error. 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 suppress the message.
- Turn off all html validation in Tools/Options and then the Text Editor / HTML / Validation "Show Errors" checkbox. 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.
I'm in a vb.net project, using sp1.