Partilhar via


Project.Build Method

Definition

Builds the project.

Overloads

Build()

Builds the default targets in this project.

Build(String)

Builds the specified target in this project.

Build(String[])

Builds the specified list of targets in this project.

Build(String[], IDictionary)

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

Build(String[], IDictionary, BuildSettings)

Builds the specified list of targets in this project using the specified flags, and returns the target outputs.

Build()

Source:
Project.cs

Builds the default targets in this project.

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

Returns

Applies to

Build(String)

Source:
Project.cs

Builds the specified target in this 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

Returns

Applies to

Build(String[])

Source:
Project.cs

Builds the specified list of targets in this 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[]

Returns

Remarks

This is the public method that host IDEs can call to build a project. It just turns around and calls "BuildProject" on the engine object. All builds must go through the engine object, because it needs to keep track of the projects that are currently in progress, so that we don't end up in infinite loops when we have circular project-to- project dependencies.

Applies to

Build(String[], IDictionary)

Source:
Project.cs

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

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[]
targetOutputs
IDictionary

Returns

Remarks

This is the public method that host IDEs can call to build a project. It just turns around and calls "BuildProject" on the engine object. All builds must go through the engine object, because it needs to keep track of the projects that are currently in progress, so that we don't end up in infinite loops when we have circular project-to- project dependencies.

Applies to

Build(String[], IDictionary, BuildSettings)

Source:
Project.cs

Builds the specified list of targets in this project using the specified flags, and returns the target outputs.

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[]
targetOutputs
IDictionary
buildFlags
BuildSettings

Returns

Remarks

This is the public method that host IDEs can call to build a project. It just turns around and calls "BuildProject" on the engine object. All builds must go through the engine object, because it needs to keep track of the projects that are currently in progress, so that we don't end up in infinite loops when we have circular project-to- project dependencies.

Applies to