Condividi tramite


ImportCollection.AddNewImport(String, String) Method

Definition

Adds a new import to the project ,and adds a corresponding <Import> element to the end of the project.

public:
 void AddNewImport(System::String ^ projectFile, System::String ^ condition);
public void AddNewImport (string projectFile, string condition);
member this.AddNewImport : string * string -> unit
Public Sub AddNewImport (projectFile As String, condition As String)

Parameters

projectFile
String

Project file to add the import to

condition
String

Condition. If null, no condition is added.

Remarks

Warning

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to