Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Engine.BuildProjectFile Method (String, String)

Loads the specified project file and builds the specified target of the project.

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

public bool BuildProjectFile(
	string projectFile,
	string targetName
)

Parameters

projectFile
Type: System.String

The project file to load and build.

targetName
Type: System.String

The Name attribute of the Target element 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