12 references to Condition
Microsoft.Build (6)
BackEnd\Components\RequestBuilder\TargetEntry.cs (5)
350if (ExpressionShredder.ContainsMetadataExpressionOutsideTransform(_target.Condition)) 352ProjectErrorUtilities.ThrowInvalidProject(_target.ConditionLocation, "TargetConditionHasInvalidMetadataReference", _target.Name, _target.Condition); 358_target.Condition, 378string expanded = _expander.ExpandIntoStringAndUnescape(_target.Condition, ExpanderOptions.ExpandPropertiesAndItems | ExpanderOptions.LeavePropertiesUnexpandedOnError | ExpanderOptions.Truncate, _target.ConditionLocation); 394Condition = _target.Condition,
Instance\ProjectTargetInstance.cs (1)
473target.Condition = Condition;
Microsoft.Build.Engine.OM.UnitTests (1)
Instance\ProjectTargetInstance_Tests.cs (1)
30Assert.Equal("c", target.Condition);
Microsoft.Build.Engine.UnitTests (5)
Construction\SolutionProjectGenerator_Tests.cs (2)
1676Assert.Contains("'$(Configuration)' == 'Release'", msbuildProject.Targets["Build"].Condition); 1677Assert.Contains("'$(Configuration)' == 'Debug'", msbuildProject.Targets["Build"].Condition);
Instance\ProjectInstance_Internal_Tests.cs (1)
792targetInstance.Condition.ShouldBe("1==1");
TestComparers\ProjectInstanceModelTestComparers.cs (2)
85Assert.Equal(x.Condition, y.Condition);