Summary
Compiles Microsoft Visual Basic 6 programs.
- Assembly
- NAnt
.Contrib .dll - Namespace
- NAnt
.Contrib .Tasks - Base Types
-
- ExternalProgramBase
graph BT
Type-->Base0["ExternalProgramBase"]
Type["Vb6Task"]
class Type type-node
Syntax
[TaskName("vb6")]
public class Vb6Task : ExternalProgramBase
Examples
Build the project HelloWorld.vbp
in the build
directory.
<vb6 project="HelloWorld.vbp" outdir="build" />
Check compiled property "vb6.compiled"
<echo message="Compiled sucessfully" if="${vb6.compiled}" />
<echo message="Compilation not needed" if="${not vb6.compiled}" />
Remarks
Uses the VB6.EXE executable included with the Visual Basic 6 environment.
The compiler uses the settings and source files specified in the project or group file.
Attributes
Type | Description |
---|---|
TaskName |
Properties
Name | Value | Summary |
---|---|---|
CheckReferences | bool |
Determines whether project references are checked when deciding
whether the project needs to be recompiled. The default is
true .
|
CompiledProperty | string |
The name of a property in which will be set to
true
if compilation was needed and done without errors (default: "vb6.compiled")
This can be used for touching the compilation files if
vb6 autoincrement is set to true to avoid recompilation without any
other changes.
|
Conditionals | string |
Tells Visual Basic which values to use for conditional compilation
constants.
|
ErrorFile | FileInfo |
The file to which the Visual Basic compiler should log errors.
|
OutDir | DirectoryInfo |
Output directory for the compilation target.
|
ProgramArguments | string |
Gets the command-line arguments for the external program.
|
ProgramFileName | string |
Gets the filename of the external program to start.
|
ProjectFile | FileInfo |
Visual Basic project or group file.
|
Methods
Name | Value | Summary |
---|---|---|
ExecuteTask |
void |
Compiles the Visual Basic project or project group.
|
NeedsCompiling |
bool | |
ParseGroupFile |
StringCollection |
Parses a VB group file and extract the file names of the sub-projects
in the group.
|
Project |
bool |
Determines if a VB project needs to be recompiled by comparing the timestamp of
the project's files and references to the timestamp of the last built version.
|