This documentation is archived and is not being maintained.

Compiler Error CS1904

Visual Studio .NET 2003

'number' is not a valid warning number

A number that was passed to the /nowarn compiler option was not a valid warning.

The following sample generates CS1904:

// CS1904.cs
// compile with: /nowarn:invalid_warning_number
// CS1904 generated
class X
   public static void Main()