type

BuildCs

src abstract class BuildCs : BuildScript

BuildCs is the base class for build scripts used to manage building C# source code into a .NET exe or dll.

fields

libs

List of libraries to link to.

output

Required output file created by the compiler.

skip

Should we skip compiling .NET code? Default only runs C# compiler if running on Windows.

srcDirs

Required list of directories to compile.

targetType

Required output type.

methods

clean

Delete all intermediate and target files

compile

Compile C# source into exe or dll

dumpEnv
full

Run clean, compile

Slot Details

clean

src @Target { help=... }
Void clean()

Delete all intermediate and target files

compile

src @Target { help="Compile C# source into exe or dll" }
Void compile()

Compile C# source into exe or dll

dumpEnv

src virtual override Void dumpEnv()

full

src @Target { help="Run clean, compile" }
Void full()

Run clean, compile

libs

src Uri[] libs := Uri[,]

List of libraries to link to.

output

src Uri? output

Required output file created by the compiler.

skip

src Bool skip := "win32"

Should we skip compiling .NET code? Default only runs C# compiler if running on Windows.

srcDirs

src Uri[]? srcDirs

Required list of directories to compile. All C# source files in each directory will be compiled.

targetType

src Str? targetType

Required output type. Possible values are exe, winexe, library or module.