cscompmgd
Specifies the severity of a compiler diagnostic.
An unknown severity.
A warning or suggestive diagnostic.
An error diagnostic.
A noncontinuable error diagnostic.
Represents an error or diagnostic message reported by the compiler.
Specifies the filename of the source text that caused the diagnostic, or an empty string ("").
Specifies the line of the source text that caused the diagnostic (1 based), or 0 if there is no line information.
Specifies the column of the source text that caused the diagnostic (1 based), or 0 if there is no column information.
Specifies the diagnostic number.
Specifies the diagnostic message text.
Specifies the severity of this diagnostic.
Converts the diagnostic to a string of the following form:
[filename(line,column):] AAAAA CSXXXX: message
Where AAAAA is either: "warning", "error", or "fatal error", and
CSXXXX is the diagnotic number in decimal format.
This is the same format seen at the command-line.
Managed wrapper for the C# compiler.
Compile the given C# sources to the specified target file.
An array of type , each with C# code. Each string is the equivalent of a single source file.
There must be at least one sourceText element.
An array of type containing the filenames for each sourceText. The filenames are used for
compiler diagnostics and debug information. This array is required, but
can be locally overridden by use of the directive. This array must have
the same number of elements as the parameter.
The output filename. This argument is required.
An array of type , with files to reference. This is the same as the compiler option.
This parameter can be .
A of compiler options.
The key is the short form of the compiler option.
The value is the value desired for the option.
This parameter can be .
Note that not all of the are recognized.
Recognized options and values:
Key NameUsage- addmodule
List of modules to include in this assembly. The module names must be separated
by the vertical bar or pipe character.
Value must be of type .
See
- baseaddress
Base address for libraries.
Value must be of type .
See
- bugreport
Produces bug report file.
Value must be of type .
See
- checked
Set default expression evaluation to checked (or unchecked).
Value must be of type .
See
- d
List of semicolon separated symbols to define.
Value must be of type .
See
- debug
Emit debug information with output.
Value must be of type .
Full or pdbonly cannot be specified.
See
- doc
Filename to put XML comments in.
Value must be of type .
See
- filealign
PE section alignment size.
Value must be of type .
See
- incr
Enable incremental rebuild.
Value must be of type .
See
- lib
Additional paths to search when locating modules and referenced assemblies.
Value must be of type .
See
- linkres
Link a managed resource to the assembly.
Value must be of type .
See
- m
Type to search in for the Main method.
Value must be of type .
See
- nostdlib
Do not auto-reference mscorlib.dll.
Value must be of type .
See
- nowarn
List of semicolon separated warning numbers to not report.
Value must be of type .
See
- o
Enable compiler optimizations.
Value must be of type .
See
- r
Referenced assemblies.
Value must be of type .
If more than one assembly is specified, the file name must be separated by the vertical bar or
pipe character.
See
- res
Embed a managed resource.
Value must be of type .
See
- target
Output file target type, one of the following:
"library", "exe", "winexe", or "module".
Value must be of type .
See
- unsafe
Allow unsafe constructs.
Value must be of type .
See
- w
Warning level (0-4).
Value must be of type .
See
- warnaserror
Report warning diagnostics as errors.
Value must be of type .
See
- win32icon
Win32 icon for auto generated Win32 resource.
Value must be of type .
See
- win32res
Win32 resource file.
Value must be of type .
See
Returns diagnostice messages as an array of type . If the array is empty or all elements are warnings
then the compilation succeeded.