Compiler Error CS1902
Invalid option 'option' for /debug; must be full or pdbonly
An invalid option was passed to the DebugType compiler option.
The following sample generates CS1902:
C#
// CS1902.cs
// compile with: /debug:x
// CS1902 expected
class x
{
public static void Main()
{
}
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: