In this post, you’ll learn all the C# compiler error and warnings from the code CS2001 to CS3000.
C# Compiler Error Codes CS2001 to CS3000
| Error Code | Type | Error/Warning Description | 
|---|---|---|
| CS2001 | Error | Source file ‘{0}’ could not be found. | 
| CS2002 | Warning | Source file ‘{0}’ specified multiple times | 
| CS2005 | Error | Missing file specification for ‘{0}’ option | 
| CS2006 | Error | Command-line syntax error: Missing ‘{0}’ for ‘{1}’ option | 
| CS2007 | Error | Unrecognized option: ‘{0}’ | 
| CS2008 | Warning | No source files specified. | 
| CS2011 | Error | Error opening response file ‘{0}’ | 
| CS2012 | Error | Cannot open ‘{0}’ for writing — ‘{1}’ | 
| CS2013 | Error | Invalid image base number ‘{0}’ | 
| CS2015 | Error | ‘{0}’ is a binary file instead of a text file | 
| CS2016 | Fatal | Code page ‘{0}’ is invalid or not installed | 
| CS2017 | Error | Cannot specify /main if building a module or library | 
| CS2019 | Fatal | Invalid target type for /target: must specify ‘exe’, ‘winexe’, ‘library’, or ‘module’ | 
| CS2021 | Fatal | File name ‘{0}’ is empty, contains invalid characters, has a drive specification without an absolute path, or is too long | 
| CS2023 | Warning | Ignoring /noconfig option because it was specified in a response file | 
| CS2024 | Error | Invalid file section alignment ‘{0}’ | 
| CS2029 | Warning | Invalid name for a preprocessing symbol; ‘{0}’ is not a valid identifier | 
| CS2033 | Fatal | Cannot create short filename ‘{0}’ when a long filename with the same short filename already exists | 
| CS2034 | Error | A /reference option that declares an extern alias can only have one filename. To specify multiple aliases or filenames, use multiple /reference options. | 
| CS2035 | Error | Command-line syntax error: Missing ‘:\<number\>‘ for ‘{0}’ option | 
| CS2036 | Error | The /pdb option requires that the /debug option also be used | 
| CS2037 | Error | An expression tree lambda may not contain a COM call with ref omitted on arguments | 
| CS2038 | Warning | The language name ‘{0}’ is invalid. | 
| CS2039 | Error | Command-line syntax error: Invalid Guid format ‘{0}’ for option ‘{1}’ | 
| CS2040 | Error | Command-line syntax error: Missing Guid for option ‘{1}’ | 
| CS2041 | Error | Invalid output name: {0} | 
| CS2042 | Error | Invalid debug information format: {0} | 
| CS2043 | Error | ‘id#’ syntax is no longer supported. Use ‘$id’ instead. | 
| CS2044 | Error | /sourcelink switch is only supported when emitting PDB. | 
| CS2045 | Error | /embed switch is only supported when emitting a PDB. | 
| CS2046 | Error | Command-line syntax error: ‘{0}’ is not a valid value for the ‘{1}’ option. The value must be of the form ‘{2}’. | 
 
															 
								 
								