7 overrides of Condition
Microsoft.Build (7)
Construction\ProjectChooseElement.cs (1)
50
public override string
Condition
Construction\ProjectExtensionsElement.cs (1)
53
public override string
Condition
Construction\ProjectOtherwiseElement.cs (1)
48
public override string
Condition
Construction\ProjectRootElement.cs (1)
277
public override string
Condition
Construction\ProjectUsingTaskBodyElement.cs (1)
52
public override string
Condition
Construction\ProjectUsingTaskParameterElement.cs (1)
49
public override string
Condition
Construction\UsingTaskParameterGroupElement.cs (1)
51
public override string
Condition
81 writes to Condition
installer.tasks (1)
GenerateFileVersionProps.cs (1)
129
itemGroup.
Condition
= "'$(RuntimeIdentifier)' == '' or '$(SelfContained)' != 'true'";
Microsoft.Build (26)
Construction\ProjectTaskElement.cs (2)
248
outputItem.
Condition
= condition;
278
outputProperty.
Condition
= condition;
Construction\ProjectWhenElement.cs (1)
71
var when = new ProjectWhenElement(element, containingProject) {
Condition
= condition };
Construction\Solution\SolutionProjectGenerator.cs (21)
240
solutionConfigurationProperties.
Condition
= GetConditionStringForConfiguration(solutionConfiguration);
885
importBefore.
Condition
= @"'$(ImportByWildcardBeforeSolution)' != 'false' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportBefore')"; // Avoids wildcard perf problem
888
importAfter.
Condition
= @"'$(ImportByWildcardBeforeSolution)' != 'false' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportAfter')"; // Avoids wildcard perf problem
913
directorySolutionPropsPropertyGroup.
Condition
= "'$(ImportDirectorySolutionProps)' != 'false' and '$(DirectorySolutionPropsPath)' == ''";
917
directorySolutionPropsFileProperty.
Condition
= "'$(_DirectorySolutionPropsFile)' == ''";
921
directorySolutionPropsBasePathProperty.
Condition
= "'$(_DirectorySolutionPropsBasePath)' == ''";
925
directorySolutionPropsPathProperty.
Condition
= "'$(_DirectorySolutionPropsBasePath)' != '' and '$(_DirectorySolutionPropsFile)' != ''";
928
directorySolutionPropsImport.
Condition
= "'$(ImportDirectorySolutionProps)' != 'false' and exists('$(DirectorySolutionPropsPath)')";
931
directorySolutionTargetsPropertyGroup.
Condition
= "'$(ImportDirectorySolutionTargets)' != 'false' and '$(DirectorySolutionTargetsPath)' == ''";
935
directorySolutionTargetsFileProperty.
Condition
= "'$(_DirectorySolutionTargetsFile)' == ''";
939
directorySolutionTargetsBasePathProperty.
Condition
= "'$(_DirectorySolutionTargetsBasePath)' == ''";
943
directorySolutionTargetsPathProperty.
Condition
= "'$(_DirectorySolutionTargetsBasePath)' != '' and '$(_DirectorySolutionTargetsFile)' != ''";
946
directorySolutionTargetsImport.
Condition
= "'$(ImportDirectorySolutionTargets)' != 'false' and exists('$(DirectorySolutionTargetsPath)')";
955
importBeforeLocal.
Condition
= @"exists('" + localFile + "')";
959
importAfterLocal.
Condition
= @"exists('" + localFile + "')";
2228
configurationDefaultingPropertyGroup.
Condition
= " '$(Configuration)' == '' ";
2234
platformDefaultingPropertyGroup.
Condition
= " '$(Platform)' == '' ";
2262
venusConfiguration.
Condition
= " ('$(AspNetConfiguration)' == '') ";
2299
tfv20Property.
Condition
= "'$(TargetFrameworkVersion)' == '' and '$(MSBuildToolsVersion)' == '2.0'";
2300
tfv35Property.
Condition
= "'$(TargetFrameworkVersion)' == '' and ('$(MSBuildToolsVersion)' == '3.5' or '$(MSBuildToolsVersion)' == '3.0')";
2301
tfv40Property.
Condition
= "'$(TargetFrameworkVersion)' == '' and !('$(MSBuildToolsVersion)' == '3.5' or '$(MSBuildToolsVersion)' == '3.0' or '$(MSBuildToolsVersion)' == '2.0')";
Instance\ProjectTargetInstance.cs (2)
473
target.
Condition
= Condition;
482
taskElement.
Condition
= taskInstance.Condition;
Microsoft.Build.Engine.OM.UnitTests (45)
Construction\ConstructionEditing_Tests.cs (14)
373
target.
Condition
= "c";
1725
itemGroup.
Condition
= "c";
2049
itemGroup.
Condition
= "c";
2163
propertyGroup.
Condition
= "c";
2210
property1.
Condition
= "c";
2234
property1.Parent.
Condition
= "c";
2327
item.Xml.
Condition
= "false";
2355
metadatum.Xml.
Condition
= "false";
2517
import.
Condition
= "c";
2538
ProjectRootElement.Create().CreateImportGroupElement().
Condition
= "c";
2604
element.
Condition
= "c";
2865
element.
Condition
= "c";
2885
ProjectRootElement.Create().CreateImportGroupElement().
Condition
= "c";
2951
element.
Condition
= "c";
Construction\ProjectChooseElement_Tests.cs (1)
278
when.
Condition
= "false";
Construction\ProjectImportElement_Tests.cs (1)
220
import.
Condition
= "false";
Construction\ProjectImportGroupElement_Tests.cs (1)
376
importGroup.
Condition
= "c";
Construction\ProjectItemDefinitionElement_Tests.cs (1)
210
itemDefinition.
Condition
= "c";
Construction\ProjectItemDefinitionGroupElement_Tests.cs (1)
106
itemDefinitionGroup.
Condition
= "c";
Construction\ProjectItemElement_Tests.cs (2)
946
item.
Condition
= "c";
961
item.Xml.
Condition
= "false";
Construction\ProjectItemGroupElement_tests.cs (1)
86
itemGroup.
Condition
= "c";
Construction\ProjectOnErrorElement_Tests.cs (1)
264
onError.
Condition
= "c";
Construction\ProjectOutputElement_Tests.cs (1)
215
output.
Condition
= "c";
Construction\ProjectPropertyElement_Tests.cs (1)
260
property.
Condition
= "c";
Construction\ProjectPropertyGroupElement_Tests.cs (1)
84
propertyGroup.
Condition
= "c";
Construction\ProjectRootElement_Tests.cs (1)
1172
target.
Condition
= "Some Condition";
Construction\ProjectTargetElement_Tests.cs (3)
92
target.
Condition
= "cb";
155
target.
Condition
= null;
287
target.
Condition
= "c";
Construction\ProjectTaskElement_Tests.cs (1)
292
task.
Condition
= "c";
Construction\ProjectUsingTaskElement_Tests.cs (1)
322
usingTask.
Condition
= "c";
Definition\DefinitionEditing_Tests.cs (3)
421
itemElement.
Condition
= "true";
1213
metadatumElement1.
Condition
= "true";
2342
itemElement.
Condition
= "true";
Definition\Project_Tests.cs (8)
211
xml.AddItem("i", "i1").
Condition
= "typo in ''condition''";
860
propertyElement.
Condition
= "'$(g)'=='v1'";
899
propertyElement.
Condition
= "'$(g)'=='v1'";
965
propertyElement.
Condition
= "'$(p0)'=='v0' and '$(p1)'=='v1b'";
994
propertyElement.
Condition
= "'$(p0)'=='v0' and '$(p1)'=='v1b'";
1030
propertyElement.
Condition
= "'$(g)'==''";
2569
one.AddImport(four.FullPath).
Condition
= "false"; // False condition; should not be entered
3902
import.
Condition
= " '$(Something)' == 'nothing' ";
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (2)
176
newTarget1.VerifySetter("'Configuration' == 'Foo'", (t) => t.Condition, (t, v) => t.
Condition
= v);
416
when.VerifySetter("Condition", (we) => we.Condition, (we, v) => we.
Condition
= v);
Microsoft.Build.Engine.UnitTests (9)
BackEnd\TaskRegistry_Tests.cs (5)
1122
element.
Condition
= "'@(ThirdItem)$(Property1)' == 'ThirdValue1Value1'";
1166
element.
Condition
= "'true' != 'false'";
1170
element.
Condition
= "false";
1174
element.
Condition
= "'@(ThirdItem)$(Property1)' == 'ThirdValue1Value1'";
1178
element.
Condition
= "'@(ThirdItem)$(Property1)' == 'ThirdValue1'";
Evaluation\Evaluator_Tests.cs (1)
2063
import.AddProperty("p", "0").
Condition
= "false";
Evaluation\Preprocessor_Tests.cs (3)
260
xml1.AddImport("p2").
Condition
= "false";
469
group.
Condition
= "true";
667
xml1.LastChild.
Condition
= "false";
65 references to Condition
Microsoft.Build (31)
Construction\ProjectPropertyGroupElement.cs (1)
83
if (String.Equals(property.Name, name, StringComparison.OrdinalIgnoreCase) && property.
Condition
.Length == 0)
Construction\ProjectRootElement.cs (5)
933
ImportGroupsReversed.FirstOrDefault(importGroup => importGroup.
Condition
.Length <= 0);
994
if (itemGroup.
Condition
.Length > 0)
1070
if (itemDefinitionGroup.
Condition
.Length > 0)
1169
if (propertyGroup.
Condition
.Length > 0)
1181
if (property.
Condition
.Length > 0)
Construction\ProjectWhenElement.cs (1)
89
return owner.CreateWhenElement(
Condition
);
Definition\Project.cs (3)
3062
if (group.
Condition
.Length > 0)
3438
if (candidateExistingItemXml.
Condition
.Length != 0 || candidateExistingItemXml.Exclude.Length != 0 || !candidateExistingItemXml.IncludeHasWildcards)
3862
if (itemGroupXml.
Condition
.Length > 0)
Evaluation\Evaluator.cs (14)
435
output.
Condition
,
448
output.
Condition
,
472
ProjectPropertyGroupTaskPropertyInstance property = new ProjectPropertyGroupTaskPropertyInstance(propertyElement.Name, propertyElement.Value, propertyElement.
Condition
, propertyElement.Location, propertyElement.ConditionLocation);
476
ProjectPropertyGroupTaskInstance propertyGroup = new ProjectPropertyGroupTaskInstance(propertyGroupElement.
Condition
, propertyGroupElement.Location, propertyGroupElement.ConditionLocation, properties);
487
ProjectOnErrorInstance onError = new ProjectOnErrorInstance(projectOnErrorElement.ExecuteTargetsAttribute, projectOnErrorElement.
Condition
, projectOnErrorElement.Location, projectOnErrorElement.ExecuteTargetsLocation, projectOnErrorElement.ConditionLocation);
509
metadataElement.
Condition
,
524
itemElement.
Condition
,
538
ProjectItemGroupTaskInstance itemGroup = new ProjectItemGroupTaskInstance(itemGroupElement.
Condition
, itemGroupElement.Location, itemGroupElement.ConditionLocation, items);
585
targetElement.
Condition
,
1587
var newExpandedCondition = importElement.
Condition
.Replace(extensionPropertyRefAsString, extensionPathExpanded, StringComparison.OrdinalIgnoreCase);
1691
string expanded = _expander.ExpandIntoStringAndUnescape(importElement.
Condition
, ExpanderOptions.ExpandProperties | ExpanderOptions.LeavePropertiesUnexpandedOnError | ExpanderOptions.Truncate, importElement.ConditionLocation);
1701
importElement.
Condition
,
2378
return EvaluateCondition(element, element.
Condition
, expanderOptions, parserOptions);
2406
return EvaluateConditionCollectingConditionedProperties(element, element.
Condition
, expanderOptions, parserOptions, projectRootElementCache);
Evaluation\LazyItemEvaluator.cs (2)
67
return EvaluateCondition(element.
Condition
, element, expanderOptions, parserOptions, _expander, this);
645
metadatumElement.
Condition
,
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (3)
208
if (!EvaluateCondition(metadataElement.
Condition
, metadataElement, metadataExpansionOptions, ParserOptions.AllowAll, _expander, _lazyEvaluator))
241
metadataElement.
Condition
,
278
yield return metadataElement.
Condition
;
Instance\ProjectTaskInstance.cs (1)
106
_condition = element.
Condition
;
Instance\TaskRegistry.cs (1)
302
projectUsingTaskXml.
Condition
,
Microsoft.Build.Engine.OM.UnitTests (34)
Construction\ProjectChooseElement_Tests.cs (2)
226
Assert.Equal("c1", whens[0].
Condition
);
227
Assert.Equal("c2", whens[1].
Condition
);
Construction\ProjectImportElement_Tests.cs (1)
106
Assert.Equal("c", imports[1].
Condition
);
Construction\ProjectImportGroupElement_Tests.cs (3)
275
Assert.Equal("c", imports[1].
Condition
);
310
Assert.Equal("c", imports[1].
Condition
);
378
Assert.Equal("c", importGroup.
Condition
);
Construction\ProjectItemDefinitionElement_Tests.cs (2)
119
Assert.Equal("c", metadata[1].
Condition
);
212
Assert.Equal("c", itemDefinition.
Condition
);
Construction\ProjectItemDefinitionGroupElement_Tests.cs (2)
92
Assert.Equal("c", itemDefinitionGroups[0].
Condition
);
108
Assert.Equal("c", itemDefinitionGroup.
Condition
);
Construction\ProjectItemElement_Tests.cs (2)
421
Assert.Equal("c", metadata[1].
Condition
);
948
Assert.Equal("c", item.
Condition
);
Construction\ProjectItemGroupElement_tests.cs (1)
88
Assert.Equal("c", itemGroup.
Condition
);
Construction\ProjectMetadataElement_Tests.cs (1)
40
Assert.Equal("c", metadatum.
Condition
);
Construction\ProjectOnErrorElement_Tests.cs (2)
29
Assert.Equal("c", onError.
Condition
);
266
Assert.Equal("c", onError.
Condition
);
Construction\ProjectOutputElement_Tests.cs (1)
216
Assert.Equal("c", output.
Condition
);
Construction\ProjectPropertyElement_Tests.cs (2)
30
Assert.Equal("c", property.
Condition
);
261
Assert.Equal("c", property.
Condition
);
Construction\ProjectPropertyGroupElement_Tests.cs (1)
86
Assert.Equal("c", propertyGroup.
Condition
);
Construction\ProjectTargetElement_Tests.cs (4)
78
Assert.Equal("c", target.
Condition
);
97
Assert.Equal("cb", target.
Condition
);
157
Assert.Equal(String.Empty, target.
Condition
);
289
Assert.Equal("c", target.
Condition
);
Construction\ProjectTaskElement_Tests.cs (2)
77
Assert.Equal("c", task.
Condition
);
293
Assert.Equal("c", task.
Condition
);
Construction\ProjectUsingTaskElement_Tests.cs (4)
195
Assert.Equal(String.Empty, usingTask.
Condition
);
209
Assert.Equal("c", usingTask.
Condition
);
223
Assert.Equal("c", usingTask.
Condition
);
323
Assert.Equal("c", usingTask.
Condition
);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
407
ValidateEqualWithException(() => viewXml.
Condition
, () => realXml.
Condition
);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (2)
176
newTarget1.VerifySetter("'Configuration' == 'Foo'", (t) => t.
Condition
, (t, v) => t.Condition = v);
416
when.VerifySetter("Condition", (we) => we.
Condition
, (we, v) => we.Condition = v);