NAnt SDK Documentation - v0.92

VbcTask Members

VbcTask overview

Public Instance Constructors

VbcTask Constructor Initializes a new instance of the VbcTask class.

Public Instance Properties

Arguments (inherited from ExternalProgramBase) The command-line arguments for the external program.
BaseAddress The preferred base address at which to load a DLL. The default base address for a DLL is set by the .NET Framework common language runtime.
BaseDirectory (inherited from ExternalProgramBase) Gets the working directory for the application.
CommandLine (inherited from ExternalProgramBase) Gets the command-line arguments, separated by spaces.
Debug No longer expose this to build authors. Use DebugOutput instead.
DebugOutput Specifies the type of debugging information generated by the compiler. The default is None.
Define (inherited from CompilerBase) Define conditional compilation symbol(s).
DelaySign (inherited from CompilerBase) Specifies whether to delay sign the assembly using only the public portion of the strong name key. The default is NotSet.
DocFile The name of the XML documentation file to generate. Only supported when targeting .NET 2.0 (or higher).
ErrorWriter (inherited from ExternalProgramBase) Gets or sets the TextWriter to which error output of the external program will be written.
ExeName (inherited from ExternalProgramBase) The name of the executable that should be used to launch the external program.
ExitCode (inherited from ExternalProgramBase) Gets the value that the process specified when it terminated.
Extension Gets the file extension required by the current compiler.
FailOnError (inherited from Task) Determines if task failure stops the build, or is just reported. The default is true.
ForceRebuild (inherited from CompilerBase) Instructs NAnt to recompile the output file regardless of the file timestamps.
IfDefined (inherited from Task) If true then the task will be executed; otherwise, skipped. The default is true.
Imports The namespaces to import.
ImportsStringObsolete. Specifies whether the /imports option gets passed to the compiler.
KeyContainer (inherited from CompilerBase) Specifies the key pair container used to strongname the assembly.
KeyFile (inherited from CompilerBase) Specifies a strong name key file.
Lib (inherited from CompilerBase)Obsolete. Additional directories to search in for assembly references.
LogPrefix (inherited from Task)Obsolete. The prefix used when sending messages to the log.
MainType (inherited from CompilerBase) Specifies which type contains the Main method that you want to use as the entry point into the program.
Managed (inherited from ExternalProgramBase) Specifies whether the external program should be treated as a managed application, possibly forcing it to be executed under the currently targeted version of the CLR.
Modules (inherited from CompilerBase) Link the specified modules into this assembly.
Name (inherited from Task) The name of the task.
NamespaceManager (inherited from Element) Gets or sets the XmlNamespaceManager.
NoStdLib Instructs the compiler not to reference standard libraries (system.dll and VBC.RSP). The default is false. Only supported when targeting .NET 2.0 (or higher).
NoWarn (inherited from CompilerBase)Obsolete. Specifies a comma-separated list of warnings that should be suppressed by the compiler.
OptionCompare Specifies whether /optioncompare option gets passed to the compiler.
OptionExplicit Specifies whether the /optionexplicit option gets passed to the compiler. The default is false.
OptionOptimize Specifies whether the /optimize option gets passed to the compiler. The default is false.
OptionStrict Specifies whether the /optionstrict option gets passed to the compiler. The default is false.
Output (inherited from ExternalProgramBase) Gets the file to which the standard output should be redirected.
OutputAppend (inherited from ExternalProgramBase) Gets a value indicating whether output will be appended to the Output.
OutputFile (inherited from CompilerBase) The output file created by the compiler.
OutputTarget (inherited from CompilerBase) Output type. Possible values are exe, winexe, library or module.
OutputWriter (inherited from ExternalProgramBase) Gets or sets the TextWriter to which standard output messages of the external program will be written.
Packages (inherited from CompilerBase) Specifies list of packages to reference.
Parent (inherited from Element) Gets or sets the parent of the element.
Platform Specifies which platform version of common language runtime (CLR) can run the output file.
ProgramArguments (inherited from CompilerBase) Gets the command-line arguments for the external program.
ProgramFileName (inherited from ExternalProgramBase) Gets the filename of the external program to start.
Project (inherited from Element) Gets or sets the Project to which this element belongs.
Properties (inherited from Element) Gets the properties local to this Element and the Project.
References (inherited from CompilerBase) Reference metadata from the specified assembly files.
RemoveIntChecks Specifies whether the /removeintchecks option gets passed to the compiler. The default is false.
ResourcesList (inherited from CompilerBase) Resources to embed.
RootNamespace Specifies whether the /rootnamespace option gets passed to the compiler.
Sources (inherited from CompilerBase) The set of source files for compilation.
Spawn (inherited from ExternalProgramBase) Gets or sets a value indicating whether the application should be spawned. If you spawn an application, its output will not be logged by NAnt. The default is false.
SupportsDelaySign (inherited from CompilerBase) Indicates whether the compiler for a given target framework supports the "delaysign" option. The default is false.
SupportsDocGeneration Specifies whether the compiler for the active target framework supports generation of XML Documentation file. The default is false.
SupportsKeyContainer (inherited from CompilerBase) Indicates whether the compiler for a given target framework supports the "keycontainer" option. The default is false.
SupportsKeyFile (inherited from CompilerBase) Indicates whether the compiler for a given target framework supports the "keyfile" option. The default is false.
SupportsNoStdLib Specifies whether the compiler for the active target framework supports NOT referencing standard libraries (system.dll and VBC.RSP). The default is false.
SupportsNoWarnList (inherited from CompilerBase) Indicates whether the compiler for a given target framework supports a command line option that allows a list of warnings to be suppressed. The default is false.
SupportsPackageReferences (inherited from CompilerBase) Indicates whether package references are supported by compiler for a given target framework. The default is false.
SupportsPlatform Specifies whether the compiler for the active target framework supports limiting the platform on which the compiled code can run. The default is false.
SupportsWarnAsErrorList (inherited from CompilerBase) Indicates whether the compiler for a given target framework supports the "warnaserror" option that takes a list of warnings. The default is false.
SuppressWarnings (inherited from CompilerBase) Specifies a list of warnings that you want the compiler to suppress.
Threshold (inherited from Task) Gets or sets the log threshold for this Task. By default the threshold of a task is Debug, causing no messages to be filtered in the task itself.
TimeOut (inherited from ExternalProgramBase) The maximum amount of time the application is allowed to execute, expressed in milliseconds. Defaults to no time-out.
UnlessDefined (inherited from Task) Opposite of IfDefined. If false then the task will be executed; otherwise, skipped. The default is false.
UseRuntimeEngine (inherited from ExternalProgramBase)Obsolete. Specifies whether the external program is a managed application which should be executed using a runtime engine, if configured. The default is false.
Verbose (inherited from Task) Determines whether the task should report detailed build log messages. The default is false.
WarnAsError (inherited from CompilerBase) Instructs the compiler to treat all warnings as errors. The default is false.
WarningAsError (inherited from CompilerBase) Controls which warnings should be reported as errors.
Win32Icon (inherited from CompilerBase) Icon to associate with the application.
Win32Res (inherited from CompilerBase) Specifies a Win32 resource file (.res).

Public Instance Methods

Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
Execute (inherited from Task) Executes the task unless it is skipped.
GetHashCode (inherited from Object) Serves as a hash function for a particular type.
GetLocation (inherited from Element) Retrieves the location in the build file where the element is defined.
GetManifestResourceName (inherited from CompilerBase)Overloaded. Determines the manifest resource name of the given resource file.
GetType (inherited from Object) Gets the Type of the current instance.
Initialize (inherited from Element)Overloaded. Performs default initialization.
InitializeTaskConfiguration (inherited from Task) Initializes the configuration of the task using configuration settings retrieved from the NAnt configuration file.
IsLogEnabledFor (inherited from Task) Determines whether build output is enabled for the given Level.
Log (inherited from Task)Overloaded. Logs a message with the given priority.
PerformSearchForResourceLinkage (inherited from CompilerBase) Extracts the associated namespace/classname linkage found in the given stream.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Properties

ClassNameRegex Gets the class name regular expression for the language of the current compiler.
CustomXmlProcessing (inherited from Element) Gets a value indicating whether the element is performing additional processing using the XmlNode that was used to initialize the element.
Location (inherited from Element) Gets or sets the location in the build file where the element is defined.
NamespaceRegex Gets the namespace regular expression for the language of the current compiler.
ProcessId (inherited from ExternalProgramBase) Gets the unique identifier for the spawned application.
XmlNode (inherited from Element) Gets or sets the XML node of the element.

Protected Instance Methods

CompileResxResources (inherited from CompilerBase) Compiles a set of resx files to a .resources files.
CopyTo (inherited from Element) Copies all instance data of the Element to a given Element.
ExecuteTask (inherited from CompilerBase) Compiles the sources and resources.
Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetAttributeConfigurationNode (inherited from Task)Overloaded. Locates the XML node for the specified attribute in either the configuration section of the extension assembly or the.project.
GetAttributeConfigurationNode (inherited from Element)Overloaded. Locates the XML node for the specified attribute in the project configuration node.
GetResourceLinkage Finds the correct namespace/classname for a resource file from the given dependent source file, and ensure the RootNamespace is prefixed.
Initialize (inherited from Task)Overloaded. Initializes the task.
InitializeElement (inherited from Element)Obsolete. Derived classes should override to this method to provide extra initialization and validation not covered by the base class.
InitializeTask (inherited from Task)Obsolete. Initializes the task.
InitializeXml (inherited from Element) Initializes all build attributes and child elements.
LinkResourceAssembly (inherited from CompilerBase) Link a list of files into a resource assembly.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
NeedsCompiling Determines whether compilation is needed.
PrepareProcess (inherited from ExternalProgramBase) Updates the ProcessStartInfo of the specified Process.
StartProcess (inherited from ExternalProgramBase) Starts the process and handles errors.
WriteConditionalCompilationConstants Writes conditional compilation constants to the specified TextWriter.
WriteModuleReferences (inherited from CompilerBase) Writes module references to the specified TextWriter.
WriteNoWarnList (inherited from CompilerBase) Writes list of warnings to suppress to the specified TextWriter.
WriteOption (inherited from CompilerBase)Overloaded. Writes an option using the default output format.
WriteOptions Writes the compiler options to the specified TextWriter.
WritePackageReferences (inherited from CompilerBase) Writes package references to the specified TextWriter.
WriteWarningsAsError (inherited from CompilerBase) Writes list of warnings to (not) treat as errors to the specified TextWriter.

See Also

VbcTask Class | NAnt.DotNet.Tasks Namespace