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)
1131
<{
InnerBuildPropertyName
}>a</{
InnerBuildPropertyName
}>
1294
<ProjectReference Include=`3.proj` Condition=`'$({
InnerBuildPropertyName
})'=='a'`/>
1296
<ProjectReference Include=`4.proj` Condition=`'$({
InnerBuildPropertyName
})'=='b'`/>
1297
<ProjectReference Include=`5.proj` Condition=`'$({
InnerBuildPropertyName
})'=='b'`/>
1298
<ProjectReference Include=`6.proj` Condition=`'$({
InnerBuildPropertyName
})'=='b'` Properties=`{
InnerBuildPropertyName
}=a`/>
1310
<ProjectReference Include=`1.proj` Properties=`{
InnerBuildPropertyName
}=b`/>
1341
<{
InnerBuildPropertyName
}>a</{
InnerBuildPropertyName
}>
1345
<ProjectReference Include=`3.proj` Properties=`{
InnerBuildPropertyName
}=a`/>
2014
var innerBuildViaLocalProperty = MultitargetingSpecificationPropertyGroup + $"<PropertyGroup><{
InnerBuildPropertyName
}>foo</{
InnerBuildPropertyName
}></PropertyGroup>";
2045
var graph = new ProjectGraph(root, new Dictionary<string, string> { {
InnerBuildPropertyName
, "foo" } });
2084
<ProjectReference Condition=`'$({
InnerBuildPropertyName
})'=='b'` Include=`4.proj;5.proj`/>
2106
var innerBuildWithCommonReferences = GetNodesWithProjectNumber(graph, 1).First(n => n.ProjectInstance.GlobalProperties.TryGetValue(
InnerBuildPropertyName
, out string p) && p == "a");
2112
var innerBuildWithAdditionalReferences = GetNodesWithProjectNumber(graph, 1).First(n => n.ProjectInstance.GlobalProperties.TryGetValue(
InnerBuildPropertyName
, out string p) && p == "b");
2123
<ProjectReference Include='1.proj' Properties='{
InnerBuildPropertyName
}=a'/>
2144
var referencedInnerBuild = GetNodesWithProjectNumber(graph, 1).First(n => n.ProjectInstance.GetPropertyValue(
InnerBuildPropertyName
) == "a");
2158
<ProjectReference Include='2.proj' Properties='{
InnerBuildPropertyName
}=a'/>
2162
CreateProjectFile(env: _env, projectNumber: 2, projectReferences: new[] { 3 }, projectReferenceTargets: null, defaultTargets: null, extraContent: MultitargetingSpecificationPropertyGroup + $"<PropertyGroup><{
InnerBuildPropertyName
}>a</{
InnerBuildPropertyName
}></PropertyGroup>");
2189
<ProjectReference Include='2.proj' Condition=`'$({
InnerBuildPropertyName
})' == 'a'` Properties='{
InnerBuildPropertyName
}=a'/>
2221
var innerBuild1WithReferenceToInnerBuild2 = outerBuild1.ProjectReferences.FirstOrDefault(n => n.ProjectType == ProjectInterpretation.ProjectType.InnerBuild && n.ProjectInstance.GlobalProperties[
InnerBuildPropertyName
] == "a");
2230
innerBuild2.ProjectInstance.GlobalProperties[
InnerBuildPropertyName
].ShouldBe("a");
2579
<ProjectReference Update='@(ProjectReference)' Targets='1ATarget' Condition=`'$({
InnerBuildPropertyName
})' == '1A'` />
2580
<ProjectReference Update='@(ProjectReference)' Targets='1BTarget' Condition=`'$({
InnerBuildPropertyName
})' == '1B'` />
2591
<ProjectReference Update='@(ProjectReference)' Targets='2ATarget' Condition=`'$({
InnerBuildPropertyName
})' == '2A'` />
2592
<ProjectReference Update='@(ProjectReference)' Targets='2BTarget' Condition=`'$({
InnerBuildPropertyName
})' == '2B'` />
2609
<InnerBuildProperty>{
InnerBuildPropertyName
}</InnerBuildProperty>