C# Compiler Errors

Switch View :
ScriptFree
Visual Studio 2010 - Visual C#
C# Compiler Errors

Updated: December 2010

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.

  • Click the error number (for example, CS0029) in the Output Window, and press F1.

  • Type the error number in the Look for box in the Index.

  • Perform a search for the error number on MSDN.

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

NoteNote

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 Visual Studio Settings.

See Also

Reference

Other Resources

Change History

Date

History

Reason

December 2010

Added links to information about displaying or suppressing warning messages.

Customer feedback.

Community Content

LeetBaal
Error CS1745 is missing
I couldn't find any description of error CS1745 in the error list for VS2010
error CS1745: Cannot specify default parameter value in conjunction with DefaultParameterAttribute or OptionalAttribute.
My problem is that I cannot skip at call-site parameters decorated with [Optional] attribute.

Abel Braaksma
Hitting F1 in Output Window does NOT work anymore
Unfortunately (due to link rot?) hitting F1 in the Output Window when on a line with a compile error (whether selecting the error, the whole line or selecting nothing) does not bring you to the MSDN error page. Either you get a 404-page, or you get the general "Additional help on C# errors" page, which is next to useless.

TimwiTerby
Needs list of compiler error *messages* (not codes)
Please add a list of all the compiler error messages (not just the error codes) so that we can Ctrl+F on such a list. Otherwise the index is useless.

Charles Lambert
the table of contents for this page does not list all of the compiler errors
You can see all of the compiler errors if you switch to the 2008 version for this page