Вы находитесь на странице: 1из 3

C# Compiler Errors


1 of 3

5/25/2012 11:50 AM

C# Compiler Errors


C# Compiler Errors
Visual Studio 2010 2 out of 3 rated this helpful - Rate this topic 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#).

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 Additional Information About C# Errors Build Page, Project Designer (C#) /warn (C# Compiler Options) /nowarn (C# Compiler Options) Other Resources C# Compiler Options

Change History


Added links to information about displaying or suppressing warning messages.


December 2010

Customer feedback.

Did you find this helpful?



2 of 3

5/25/2012 11:50 AM

C# Compiler Errors


Community Content
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. 5/2/2012 LeetBaal

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. 3/24/2012 Abel Braaksma

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. 12/25/2011 TimwiTerby

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 9/30/2011 Charles Lambert

2012 Microsoft. All rights reserved.

3 of 3

5/25/2012 11:50 AM