Export (0) Print
Expand All

Engine.BuildProject Method (Project, String[])

Builds the specified targets of the specified Project.

Namespace:  Microsoft.Build.BuildEngine
Assembly:  Microsoft.Build.Engine (in Microsoft.Build.Engine.dll)

public bool BuildProject(
	Project project,
	string[] targetNames
)

Parameters

project
Type: Microsoft.Build.BuildEngine.Project

The Project to build.

targetNames
Type: System.String[]

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

Return Value

Type: System.Boolean
true if the build was successful; otherwise, false.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft