Project.Build Method

Definition

Builds the project.

Overloads

Build()

Builds the default targets of the project.

Build(String)

Builds the specified target in the project.

Build(String[])

Builds the specified list of targets in the project.

Build(String[], IDictionary)

Builds the specified list of targets in the project, and returns the outputs of the targets.

Build(String[], IDictionary, BuildSettings)

Builds the specified list of targets in the project using the specified settings, and returns the outputs of the targets.

Build()

Builds the default targets of the project.

public:
 bool Build();
public bool Build ();
member this.Build : unit -> bool
Public Function Build () As Boolean

Returns

true if the build was successful; otherwise, false.

Applies to

Build(String)

Builds the specified target in the project.

public:
 bool Build(System::String ^ targetName);
public bool Build (string targetName);
member this.Build : string -> bool
Public Function Build (targetName As String) As Boolean

Parameters

targetName
String

The target to build.

Returns

true if the build was successful; otherwise, false.

Applies to

Build(String[])

Builds the specified list of targets in the project.

public:
 bool Build(cli::array <System::String ^> ^ targetNames);
public bool Build (string[] targetNames);
member this.Build : string[] -> bool
Public Function Build (targetNames As String()) As Boolean

Parameters

targetNames
String[]

The list of targets to build. This parameter can be a null reference (Nothing in Visual Basic) to build the default targets.

Returns

true if the build was successful; otherwise, false.

Applies to

Build(String[], IDictionary)

Builds the specified list of targets in the project, and returns the outputs of the targets.

public:
 bool Build(cli::array <System::String ^> ^ targetNames, System::Collections::IDictionary ^ targetOutputs);
public bool Build (string[] targetNames, System.Collections.IDictionary targetOutputs);
member this.Build : string[] * System.Collections.IDictionary -> bool
Public Function Build (targetNames As String(), targetOutputs As IDictionary) As Boolean

Parameters

targetNames
String[]

The list of targets to build. This parameter can be a null reference (Nothing in Visual Basic) to build the default targets.

targetOutputs
IDictionary

The outputs of the built targets. This parameter can be a null reference (Nothing) if outputs are not needed.

Returns

true if the build was successful; otherwise, false.

Applies to

Build(String[], IDictionary, BuildSettings)

Builds the specified list of targets in the project using the specified settings, and returns the outputs of the targets.

public:
 bool Build(cli::array <System::String ^> ^ targetNames, System::Collections::IDictionary ^ targetOutputs, Microsoft::Build::BuildEngine::BuildSettings buildFlags);
public bool Build (string[] targetNames, System.Collections.IDictionary targetOutputs, Microsoft.Build.BuildEngine.BuildSettings buildFlags);
member this.Build : string[] * System.Collections.IDictionary * Microsoft.Build.BuildEngine.BuildSettings -> bool
Public Function Build (targetNames As String(), targetOutputs As IDictionary, buildFlags As BuildSettings) As Boolean

Parameters

targetNames
String[]

The list of targets to build. This parameter can be a null reference (Nothing in Visual Basic) to build the default targets.

targetOutputs
IDictionary

The outputs of the built targets. This parameter can be a null reference (Nothing) if outputs are not needed.

buildFlags
BuildSettings

The BuildSettings to apply to the build.

Returns

true if the build was successful; otherwise, false.

Applies to