Export (0) Print
Expand All

BuildManager.GetProjectInstanceForBuild Method

Gets a matching ProjectInstance from the BuildManager cache of previously built projects.

Namespace:  Microsoft.Build.Execution
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

public ProjectInstance GetProjectInstanceForBuild(
	Project project
)

Parameters

project
Type: Microsoft.Build.Evaluation.Project

The project for which an instance should be retrieved.

Return Value

Type: Microsoft.Build.Execution.ProjectInstance
Returns a matching ProjectInstance from the BuildManager cache of previously built projects. If none exist, a new project instance will be created from the specified project.

.NET Framework

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft