Compartilhar via


Project.ConditionedProperties Property

Gets a collection of possible property values for properties used to evaluate conditions found on properties, property groups, imports, and whens.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

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

Syntax

'Declaration
Public ReadOnly Property ConditionedProperties As IDictionary(Of String, List(Of String))
public IDictionary<string, List<string>> ConditionedProperties { get; }
public:
property IDictionary<String^, List<String^>^>^ ConditionedProperties {
    IDictionary<String^, List<String^>^>^ get ();
}
member ConditionedProperties : IDictionary<string, List<string>> with get
function get ConditionedProperties () : IDictionary<String, List<String>>

Property Value

Type: IDictionary<String, List<String>>
Returns a collection of possible property values for properties used to evaluate conditions found on properties, property groups, imports, and whens. The collection is in canonical form. The name of the entry is the name of the property to be evaluated, and the value is a list of possible property values.

Remarks

For example, if the following conditions existed on properties in a project: Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'" Condition="'$(Configuration)' == 'Release'" the table would be populated with { "Configuration", { "Debug", "Release" }} { "Platform", { "x86" }} This collection is used by Visual Studio to determine the configurations defined in the project

.NET Framework Security

See Also

Reference

Project Class

Microsoft.Build.Evaluation Namespace