Attribute | Description | Required |
---|
baseaddress | Specifies whether the /baseaddress option gets passed to the compiler. | False |
imports | Specifies whether the /imports option gets passed to the compiler. | False |
optioncompare | Specifies whether the /optioncompare option gets passed to the compiler. | False |
optionexplicit | Specifies whether the /optionexplicit option gets passed to the compiler. | False |
optionoptimize | Specifies whether the /optimize option gets passed to the compiler. | False |
optionstrict | Specifies whether the /optionstrict option gets passed to the compiler. | False |
removeintchecks | Specifies whether the /removeintchecks option gets passed to the compiler. | False |
rootnamespace | Specifies whether the /rootnamespace option gets passed to the compiler. | 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 |
<project name="Hello World" default="build" basedir=".">
<property name="basename" value="HelloWorld"/>
<property name="debug" value="true"/>
<target name="clean">
<delete file="${basename}-vb.exe" failonerror="false"/>
<delete file="${basename}-vb.pdb" failonerror="false"/>
</target>
<target name="build">
<vbc target="exe" output="${basename}-vb.exe">
<sources>
<includes name="${basename}.vb"/>
</sources>
</vbc>
</target>
<target name="debug" depends="clean">
<vbc target="exe" output="${basename}-vb.exe" debug="${debug}">
<sources>
<includes name="${basename}.vb"/>
</sources>
</vbc>
</target>
</project>