MsbuildTask Class

Summary

Builds the specified targets in the project file using MSBuild.
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Tasks
Base Types
  • ExternalProgramBase
graph BT Type-->Base0["ExternalProgramBase"] Type["MsbuildTask"] class Type type-node

Syntax

[TaskName("msbuild")]
[ProgramLocation(LocationType.FrameworkDir)]
public class MsbuildTask : ExternalProgramBase

Remarks

If a project file is not specified, MSBuild searches the current working directory for a file that has a file extension that ends in "proj" and uses that file.

Attributes

Type Description
TaskName
ProgramLocation

Properties

Name Value Summary
Managed ManagedExecution
Gets a value indiciating whether the external program is a managed application which should be executed using a runtime engine, if configured.
NoAutoResponse bool
Do not auto-include the MSBuild.rsp file.
ProgramArguments string
Gets the command line arguments for the external program.
ProjectFile FileInfo
The project to build.
Properties ArrayList
Set or override these project-level properties.
Target string
Build these targets in this project. Use a semicolon or a comma comma to separate multiple targets.
Verbosity MsbuildTask.VerbosityLevel
Specifies the amount of information to display in the MSBuild log.

Methods

Name Value Summary
ExecuteTask() void
Starts the external process and captures its output.