41 references to InnerBuildPropertyName
Microsoft.Build.Engine.UnitTests (41)
Graph\GraphTestingUtilities.cs (10)
26
<InnerBuildProperty>{
InnerBuildPropertyName
}</InnerBuildProperty>
31
<InnerBuildProperty>{
InnerBuildPropertyName
}</InnerBuildProperty>
33
<{
InnerBuildPropertyName
}>a</{
InnerBuildPropertyName
}>
60
string expectedPropertiesMetadata = $"{
InnerBuildPropertyName
}={innerBuild.ProjectInstance.GlobalProperties[
InnerBuildPropertyName
]}";
96
node.ProjectInstance.GetProperty(
InnerBuildPropertyName
).ShouldBeNull();
105
outerBuild.ProjectInstance.GetProperty(
InnerBuildPropertyName
).ShouldBeNull();
118
var innerBuildPropertyValue = innerBuild.ProjectInstance.GetPropertyValue(
InnerBuildPropertyName
);
126
.Add(
InnerBuildPropertyName
, innerBuildPropertyValue)
Graph\ProjectGraph_Tests.cs (31)
1130
<{
InnerBuildPropertyName
}>a</{
InnerBuildPropertyName
}>
1293
<ProjectReference Include=`3.proj` Condition=`'$({
InnerBuildPropertyName
})'=='a'`/>
1295
<ProjectReference Include=`4.proj` Condition=`'$({
InnerBuildPropertyName
})'=='b'`/>
1296
<ProjectReference Include=`5.proj` Condition=`'$({
InnerBuildPropertyName
})'=='b'`/>
1297
<ProjectReference Include=`6.proj` Condition=`'$({
InnerBuildPropertyName
})'=='b'` Properties=`{
InnerBuildPropertyName
}=a`/>
1309
<ProjectReference Include=`1.proj` Properties=`{
InnerBuildPropertyName
}=b`/>
1340
<{
InnerBuildPropertyName
}>a</{
InnerBuildPropertyName
}>
1344
<ProjectReference Include=`3.proj` Properties=`{
InnerBuildPropertyName
}=a`/>
2013
var innerBuildViaLocalProperty = MultitargetingSpecificationPropertyGroup + $"<PropertyGroup><{
InnerBuildPropertyName
}>foo</{
InnerBuildPropertyName
}></PropertyGroup>";
2044
var graph = new ProjectGraph(root, new Dictionary<string, string> { {
InnerBuildPropertyName
, "foo" } });
2083
<ProjectReference Condition=`'$({
InnerBuildPropertyName
})'=='b'` Include=`4.proj;5.proj`/>
2105
var innerBuildWithCommonReferences = GetNodesWithProjectNumber(graph, 1).First(n => n.ProjectInstance.GlobalProperties.TryGetValue(
InnerBuildPropertyName
, out string p) && p == "a");
2111
var innerBuildWithAdditionalReferences = GetNodesWithProjectNumber(graph, 1).First(n => n.ProjectInstance.GlobalProperties.TryGetValue(
InnerBuildPropertyName
, out string p) && p == "b");
2122
<ProjectReference Include='1.proj' Properties='{
InnerBuildPropertyName
}=a'/>
2143
var referencedInnerBuild = GetNodesWithProjectNumber(graph, 1).First(n => n.ProjectInstance.GetPropertyValue(
InnerBuildPropertyName
) == "a");
2157
<ProjectReference Include='2.proj' Properties='{
InnerBuildPropertyName
}=a'/>
2161
CreateProjectFile(env: _env, projectNumber: 2, projectReferences: new[] { 3 }, projectReferenceTargets: null, defaultTargets: null, extraContent: MultitargetingSpecificationPropertyGroup + $"<PropertyGroup><{
InnerBuildPropertyName
}>a</{
InnerBuildPropertyName
}></PropertyGroup>");
2188
<ProjectReference Include='2.proj' Condition=`'$({
InnerBuildPropertyName
})' == 'a'` Properties='{
InnerBuildPropertyName
}=a'/>
2220
var innerBuild1WithReferenceToInnerBuild2 = outerBuild1.ProjectReferences.FirstOrDefault(n => n.ProjectType == ProjectInterpretation.ProjectType.InnerBuild && n.ProjectInstance.GlobalProperties[
InnerBuildPropertyName
] == "a");
2229
innerBuild2.ProjectInstance.GlobalProperties[
InnerBuildPropertyName
].ShouldBe("a");
2578
<ProjectReference Update='@(ProjectReference)' Targets='1ATarget' Condition=`'$({
InnerBuildPropertyName
})' == '1A'` />
2579
<ProjectReference Update='@(ProjectReference)' Targets='1BTarget' Condition=`'$({
InnerBuildPropertyName
})' == '1B'` />
2590
<ProjectReference Update='@(ProjectReference)' Targets='2ATarget' Condition=`'$({
InnerBuildPropertyName
})' == '2A'` />
2591
<ProjectReference Update='@(ProjectReference)' Targets='2BTarget' Condition=`'$({
InnerBuildPropertyName
})' == '2B'` />
2608
<InnerBuildProperty>{
InnerBuildPropertyName
}</InnerBuildProperty>