C# Compiler Errors


Updated: July 20, 2015

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Some C# compiler errors have corresponding topics that explain why the error is generated, and, in some cases, how to fix the error. Use one of the following steps to see whether help is available for a particular error message.

  • Find the error number (for example, CS0029) in the Output Window, and then search for it on MSDN.

  • Choose the error number (for example, CS0029) in the Output Window, and then choose the F1 key.

  • In the Index, enter the error number in the Look for box.

If none of these steps leads to information about your error, go to the end of this page, and send feedback that includes the number or text of the error.

For information about how to configure error and warning options in C#, see Build Page, Project Designer (C#).

System_CAPS_ICON_note.jpg Note

Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Personalizing the IDE.

C# Compiler Options
Sorry, we don't have specifics on this C# error
Build Page, Project Designer (C#)
/warn (C# Compiler Options)
/nowarn (C# Compiler Options)