Project.RemovePropertyGroupsWithMatchingCondition Method

Definition

Removes all <PropertyGroup>'s from the main project file that have a specific "Condition."

Overloads

RemovePropertyGroupsWithMatchingCondition(String, Boolean)

Removes all <PropertyGroup>'s from the main project file that have a specific "Condition". This will not remove any property groups from imported project files.

RemovePropertyGroupsWithMatchingCondition(String)

Removes all <PropertyGroup>'s from the main project file that have a specific "Condition". This will not remove any property groups from imported project files.

Remarks

This will not remove any property groups from imported project files.

RemovePropertyGroupsWithMatchingCondition(String, Boolean)

Source:
Project.cs

Removes all <PropertyGroup>'s from the main project file that have a specific "Condition". This will not remove any property groups from imported project files.

C#
public void RemovePropertyGroupsWithMatchingCondition(string matchCondition, bool includeImportedPropertyGroups);

Parameters

matchCondition
String

Condition on the PropertyGroups

includeImportedPropertyGroups
Boolean

Remarks

This will not remove any property groups from imported project files.

Applies to

MSBuild 17 i MSBuild (.NET Core) 17
Produkt Wersje
MSBuild 17
MSBuild (.NET Core) 17

RemovePropertyGroupsWithMatchingCondition(String)

Source:
Project.cs

Removes all <PropertyGroup>'s from the main project file that have a specific "Condition". This will not remove any property groups from imported project files.

C#
public void RemovePropertyGroupsWithMatchingCondition(string matchCondition);
C#
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public void RemovePropertyGroupsWithMatchingCondition(string matchCondition);

Parameters

matchCondition
String

Condition on the PropertyGroups

Attributes

Applies to

MSBuild 17 i MSBuild (.NET Core) 17
Produkt Wersje
MSBuild 17
MSBuild (.NET Core) 17