| Attribute | Description | Type | Requirement | 
        
    
        
        
    
        | additionalmodules | Semicolon separated list of modules to refer to. | String | Optional | 
    
    
        | debug | set the debug flag on or off. | boolean | 
    
    
        | destdir | Set the destination directory of files to be compiled. | File | 
    
    
        | destfile | Set the name of exe/library to create. | File | 
    
    
        | executable | set the name of the program, overriding the defaults. Can be used to set the full path to a program, or to switch to an alternate implementation of the command, such as the Mono or Rotor versions -provided they use the same command line arguments as the .NET framework edition | String | 
    
    
        | extraoptions | Any extra options which are not explicitly supported by this task. | String | 
    
    
        | failonerror | If true, fail on compilation errors. | boolean | 
    
    
        | imports | Declare global imports for namespaces in referenced metadata files. | String | 
    
    
        | includedefaultreferences | If true, automatically includes the common assemblies in dotnet, and tells the compiler to link in mscore.dll. set the automatic reference inclusion flag on or off this flag controls the /nostdlib option in CSC | boolean | 
    
    
        | mainclass | Sets the name of main class for executables. | String | 
    
    
        | optimize | If true, enables optimization flag. | boolean | 
    
    
        | optioncompare | Specify binary- or text-style string comparisons. Defaults to "binary" | String | 
    
    
        | optionexplicit | Whether to require explicit declaration of variables. | boolean | 
    
    
        | optionstrict | Enforce strict language semantics. | boolean | 
    
    
        | referencefiles | Path of references to include. Wildcards should work. | Path | 
    
    
        | references | Semicolon separated list of DLLs to refer to. | String | 
    
    
        | removeintchecks | Whether to remove integer checks. Default false. | boolean | 
    
    
        | rootnamespace | Specifies the root namespace for all type declarations. | String | 
    
    
        | srcdir | Set the source directory of the files to be compiled. | File | 
    
    
        | targettype | set the target type to one of exe|library|module|winexe | "exe", "library", "module", "winexe" | 
    
    
        | utf8output | If true, require all compiler output to be in UTF8 format. | boolean | 
    
    
        | warnlevel | Level of warning currently between 1 and 4 with 4 being the strictest. | int | 
    
    
        | win32icon | Set the filename of icon to include. | File | 
    
    
        | win32res | Sets the filename of a win32 resource (.RES) file to include. This is not a .NET resource, but what Windows is used to. | File |