共用方式為


Engine.BuildProject Method

Definition

Builds the specified project.

Overloads

BuildProject(Project)

Builds the default targets in an already-loaded project.

BuildProject(Project, String)

Builds a single target in an already-loaded project.

BuildProject(Project, String[])

Builds a list of targets in an already-loaded project.

BuildProject(Project, String[], IDictionary)

Builds a list of targets in an already-loaded project, and returns the target outputs.

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

Builds a list of targets in an already-loaded project using the specified flags, and returns the target outputs.

BuildProject(Project)

Source:
Engine.cs

Builds the default targets in an already-loaded 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

Returns

true if the build was successful; otherwise, false.

Attributes

Applies to

BuildProject(Project, String)

Source:
Engine.cs

Builds a single target in an already-loaded 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
targetName
String

Returns

true if the build was successful; otherwise, false.

Applies to

BuildProject(Project, String[])

Source:
Engine.cs

Builds a list of targets in an already-loaded 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
targetNames
String[]

Returns

true if the build was successful; otherwise, false.

Attributes

Applies to

BuildProject(Project, String[], IDictionary)

Source:
Engine.cs

Builds a list of targets in an already-loaded project, and returns the target outputs.

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

Returns

true if the build was successful; otherwise, false.

Attributes

Applies to

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

Source:
Engine.cs

Builds a list of targets in an already-loaded project using the specified flags, and returns the target outputs.

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

whether previously built targets should be reset or not

Returns

true, if build succeeds

Applies to