Search code examples
visual-studio-2010visual-studiovisual-studio-2005.net-2.0

Warning as Error 2008 is not a valid warning number


I converted one of the .net 2.0 (VS2005) solution to work with VS2010 (didn't change the framework). Now when I try to build I keep getting this error message:

'Warning as Error 2008 is not a valid warning number'.

Does anyone know how I can fix this?


Solution

  • Are there any @pragma warnings in the project? Do you get a line number with your error?

    EDIT:

    Try unchecking treat warnings as errors in your project config. That should allow you to compile.