Open Source .NET Development [Electronic resources]

Brian Nantz

نسخه متنی -صفحه : 275/ 152
نمايش فراداده

<mcs>Compiles C# programs using the Mono mcs compiler.

Attribute

Description

Required

nostdlib

Instructs the compiler not to import core assemblies (true/false). Default is "false."

False

noconfig

Instructs the compiler not to use implicit references to assemblies (true/false). Default is "false."

False

output

Output directory for the compilation target.

True

target

Output type (library or exe).

True

debug

Generate debug output (true/false).

False

define

Define conditional compilation symbol(s). Corresponds to /d[efine]: flag.

False

win32icon

Icon to associate with the application. Corresponds to /win32icon: flag.

False

warnaserror

Instructs the compiler to treat all warnings as errors (true/false). Default is "false"

False

main

Specifies which type contains the Main method that you want to use as the entry point into the program.

False

failonerror

Determines whether task failure stops the build or is just reported. Default is "true."

False

verbose

Task reports detailed build log messages. Default is "false."

False

if

If true then the task will be executed; otherwise skipped. Default is "true."

False

unless

Opposite of if. If false then the task will be executed; otherwise skipped. Default is "false."

False

Example

<mcs target="exe" output="helloworld.exe" debug="true"> <sources> <includes name="helloworld.cs"/> </sources> </mcs>