19 references to condition
Microsoft.Build (16)
Construction\ProjectElement.cs (3)
112
return GetAttributeValue(XMakeAttributes.
condition
, ref _condition);
118
SetOrRemoveAttribute(XMakeAttributes.
condition
, value, ref _condition, "Set condition {0}", value);
279
public virtual ElementLocation ConditionLocation => GetAttributeLocation(XMakeAttributes.
condition
);
Evaluation\Preprocessor.cs (2)
278
string importCondition = ((XmlElement)child).GetAttribute(XMakeAttributes.
condition
);
336
string importGroupCondition = ((XmlElement)child).GetAttribute(XMakeAttributes.
condition
);
Evaluation\ProjectParser.cs (8)
31
private static readonly HashSet<string> ValidAttributesOnlyConditionAndLabel = new HashSet<string> { XMakeAttributes.
condition
, XMakeAttributes.label };
36
private static readonly HashSet<string> KnownAttributesOnItem = new HashSet<string> { XMakeAttributes.
condition
, XMakeAttributes.label, XMakeAttributes.include, XMakeAttributes.exclude, XMakeAttributes.remove, XMakeAttributes.keepMetadata, XMakeAttributes.removeMetadata, XMakeAttributes.keepDuplicates, XMakeAttributes.update, XMakeAttributes.matchOnMetadata, XMakeAttributes.matchOnMetadataOptions };
46
private static readonly HashSet<string> ValidAttributesOnImport = new HashSet<string> { XMakeAttributes.
condition
, XMakeAttributes.label, XMakeAttributes.project, XMakeAttributes.sdk, XMakeAttributes.sdkVersion, XMakeAttributes.sdkMinimumVersion };
51
private static readonly HashSet<string> ValidAttributesOnUsingTask = new HashSet<string> { XMakeAttributes.
condition
, XMakeAttributes.label, XMakeAttributes.taskName, XMakeAttributes.assemblyFile, XMakeAttributes.assemblyName, XMakeAttributes.taskFactory, XMakeAttributes.architecture, XMakeAttributes.runtime, XMakeAttributes.requiredPlatform, XMakeAttributes.requiredRuntime, XMakeAttributes.overrideUsingTask };
56
private static readonly HashSet<string> ValidAttributesOnTarget = new HashSet<string> { XMakeAttributes.
condition
, XMakeAttributes.label, XMakeAttributes.name, XMakeAttributes.inputs, XMakeAttributes.outputs, XMakeAttributes.keepDuplicateOutputs, XMakeAttributes.dependsOnTargets, XMakeAttributes.beforeTargets, XMakeAttributes.afterTargets, XMakeAttributes.returns };
61
private static readonly HashSet<string> ValidAttributesOnOnError = new HashSet<string> { XMakeAttributes.
condition
, XMakeAttributes.label, XMakeAttributes.executeTargets };
66
private static readonly HashSet<string> ValidAttributesOnOutput = new HashSet<string> { XMakeAttributes.
condition
, XMakeAttributes.label, XMakeAttributes.taskParameter, XMakeAttributes.itemName, XMakeAttributes.propertyName };
817
ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.
condition
);
XMakeAttributes.cs (3)
104
private static readonly HashSet<string> KnownSpecialTaskAttributes = new HashSet<string> {
condition
, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
106
private static readonly HashSet<string> KnownSpecialTaskAttributesIgnoreCase = new HashSet<string>(StringComparer.OrdinalIgnoreCase) {
condition
, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
108
private static readonly HashSet<string> KnownBatchingTargetAttributes = new HashSet<string> { name,
condition
, dependsOnTargets, beforeTargets, afterTargets };
Microsoft.Build.Engine.UnitTests (3)
XmakeAttributes_Tests.cs (3)
22
Assert.True(XMakeAttributes.IsSpecialTaskAttribute(XMakeAttributes.
condition
));
33
Assert.False(XMakeAttributes.IsBadlyCasedSpecialTaskAttribute(XMakeAttributes.
condition
));
48
Assert.True(XMakeAttributes.IsNonBatchingTargetAttribute(XMakeAttributes.
condition
));