Engine.BuildProject Method

Definition

Builds the specified project.

Overloads

BuildProject(Project)

Builds the specified Project.

BuildProject(Project, String)

Builds the specified target of the specified Project.

BuildProject(Project, String[])

Builds the specified targets of the specified Project.

BuildProject(Project, String[], IDictionary)

Builds the specified targets of the specified Project, and returns the outputs of the targets.

BuildProject(Project, String[], IDictionary, BuildSettings)

Builds the specified targets of the specified Project with the specified BuildSettings, and returns the outputs of the targets.

BuildProject(Project)

Builds the specified Project.

public:
 bool BuildProject(Microsoft::Build::BuildEngine::Project ^ project);
public bool BuildProject (Microsoft.Build.BuildEngine.Project project);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public bool BuildProject (Microsoft.Build.BuildEngine.Project project);
member this.BuildProject : Microsoft.Build.BuildEngine.Project -> bool
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.BuildProject : Microsoft.Build.BuildEngine.Project -> bool
Public Function BuildProject (project As Project) As Boolean

Parameters

project
Project

The Project to build.

Returns

true if the build was successful; otherwise, false.

Attributes

Applies to

BuildProject(Project, String)

Builds the specified target of the specified Project.

public:
 bool BuildProject(Microsoft::Build::BuildEngine::Project ^ project, System::String ^ targetName);
public bool BuildProject (Microsoft.Build.BuildEngine.Project project, string targetName);
member this.BuildProject : Microsoft.Build.BuildEngine.Project * string -> bool
Public Function BuildProject (project As Project, targetName As String) As Boolean

Parameters

project
Project

The Project to build.

targetName
String

The Name attribute of the Target element to build.

Returns

true if the build was successful; otherwise, false.

Applies to

BuildProject(Project, String[])

Builds the specified targets of the specified Project.

public:
 bool BuildProject(Microsoft::Build::BuildEngine::Project ^ project, cli::array <System::String ^> ^ targetNames);
public bool BuildProject (Microsoft.Build.BuildEngine.Project project, string[] targetNames);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public bool BuildProject (Microsoft.Build.BuildEngine.Project project, string[] targetNames);
member this.BuildProject : Microsoft.Build.BuildEngine.Project * string[] -> bool
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.BuildProject : Microsoft.Build.BuildEngine.Project * string[] -> bool
Public Function BuildProject (project As Project, targetNames As String()) As Boolean

Parameters

project
Project

The Project to build.

targetNames
String[]

An array that contains the Name attributes of the Target elements to build.

Returns

true if the build was successful; otherwise, false.

Attributes

Applies to

BuildProject(Project, String[], IDictionary)

Builds the specified targets of the specified Project, and returns the outputs of the targets.

public:
 bool BuildProject(Microsoft::Build::BuildEngine::Project ^ project, cli::array <System::String ^> ^ targetNames, System::Collections::IDictionary ^ targetOutputs);
public bool BuildProject (Microsoft.Build.BuildEngine.Project project, string[] targetNames, System.Collections.IDictionary targetOutputs);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public bool BuildProject (Microsoft.Build.BuildEngine.Project project, string[] targetNames, System.Collections.IDictionary targetOutputs);
member this.BuildProject : Microsoft.Build.BuildEngine.Project * string[] * System.Collections.IDictionary -> bool
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.BuildProject : Microsoft.Build.BuildEngine.Project * string[] * System.Collections.IDictionary -> bool
Public Function BuildProject (project As Project, targetNames As String(), targetOutputs As IDictionary) As Boolean

Parameters

project
Project

The Project to build.

targetNames
String[]

An array that contains the Name attributes of the Target elements to build.

targetOutputs
IDictionary

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

Returns

true if the build was successful; otherwise, false.

Attributes

Applies to

BuildProject(Project, String[], IDictionary, BuildSettings)

Builds the specified targets of the specified Project with the specified BuildSettings, and returns the outputs of the targets.

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

Parameters

project
Project

The Project to build.

targetNames
String[]

An array that contains the Name attributes of the Target elements to build.

targetOutputs
IDictionary

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

buildFlags
BuildSettings

The BuildSettings to apply to the build.

Returns

true if the build was successful; otherwise, false.

Applies to