Export (0) Print
Expand All

Project.AddNewImport Method

Add an Import element to the end of the project.

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

public void AddNewImport(
	string projectFile,
	string condition
)

Parameters

projectFile
Type: System.String

The name of the project file to import. Corresponds to the Project attribute of the Import element.

condition
Type: System.String

The condition to evaluate before importing the project. Corresponds to the Condition attribute of the Import element.

.NET Framework

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