Name
csc
Synopsis
Compiles C# source code. Currently works on platforms containing the
csc.exe
executable, i.e., various flavors of
Windows.
Attributes
-
additionalmodules
(1.3, 1.4, String, N) A semicolon-delimited list of additional modules, which are DLLs containing metadata. This is equivalent to
csc
’s/addmodule
parameter.-
debug
(1.3, 1.4, boolean, N) If
true
, include debug information. Defaults totrue
.-
defaultexcludes
(1.3, 1.4, boolean, N) Determines whether to use default excludes. Defaults to
true
.-
definitions
(1.3, 1.4, String, N) List of definitions passed to
csc.exe
, delimited by ";
“, ":
“, or ",
" — for instance,DEBUG;BETA_TEST
.-
docfile
(1.3, 1.4, File, N) The name of a file for generated XML documentation.
-
excludes
(1.3, 1.4, String, N) A comma-separated list of file patterns to exclude.
-
excludesfile
(1.3, 1.4, File, N) The name of a file containing one exclude pattern per line.
-
extraoptions
(1.3, 1.4, String, N) Extra options passed directly to the
csc.exe
command.-
failonerror
(1.3, 1.4, boolean, N) If
true
, the task fails the build when the compile returns an error. Defaults totrue
.-
fullpaths
(1.4, boolean, N) If
true
, the task prints the full path of files when errors occur. Defaults totrue
.-
includedefaultreferences
(1.3, 1.4, boolean, N) If
true
, the task includes common assemblies found in .NET beta 1, and in links inmscore.dll
. Defaults totrue
.-
includes
(1.3, 1.4, String, N) A comma-separated list of file patterns to include.
-
includesfile
(1.3, 1.4, File, N) The name of a ...
Get Ant: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.