73 references to GlobalProperties
Microsoft.Build (6)
BackEnd\Shared\BuildResult.cs (2)
134
/// be used to retrieve <see cref="ProjectInstance.Properties"/>, <see cref="ProjectInstance.
GlobalProperties
"/> and
410
/// be used to retrieve <see cref="ProjectInstance.Properties"/>, <see cref="ProjectInstance.
GlobalProperties
"/> and
Graph\GraphBuildRequestData.cs (1)
222
return node.ProjectInstance.
GlobalProperties
.AsReadOnly();
Graph\ProjectGraph.cs (1)
521
node.ProjectInstance.
GlobalProperties
.OrderBy(kvp => kvp.Key)
Graph\ProjectGraphNode.cs (1)
55
$"{truncatedProjectFile}, #GlobalProps={ProjectInstance.
GlobalProperties
.Count}, #Props={ProjectInstance.Properties.Count}, #Items={ProjectInstance.Items.Count}, #in={ReferencingProjects.Count}, #out={ProjectReferences.Count}";
Instance\ProjectInstance.cs (1)
2410
/// Replaces the project state (<see cref="
GlobalProperties
"/>, <see cref="Properties"/> and <see cref="Items"/>) with that
Microsoft.Build.Engine.UnitTests (65)
BackEnd\BuildManager_Tests.cs (2)
3708
Assert.Empty(mainInstance.
GlobalProperties
);
3743
Assert.Empty(p2pInstance.
GlobalProperties
);
BackEnd\BuildRequestConfiguration_Tests.cs (4)
371
Assert.Equal("3", instance.
GlobalProperties
["ThreeIn"]);
372
Assert.Equal("bazfile", instance.
GlobalProperties
["BazIn"]);
399
Assert.Equal("3", instance.
GlobalProperties
["ThreeIn"]);
400
Assert.Equal("bazfile", instance.
GlobalProperties
["BazIn"]);
Graph\GetCompatiblePlatformGraph_Tests.cs (12)
49
GetFirstNodeWithProjectNumber(graph, 1).ProjectInstance.
GlobalProperties
.ContainsKey("Platform").ShouldBeFalse();
89
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
90
GetFirstNodeWithProjectNumber(graph, 3).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
131
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
.ContainsKey("Platform").ShouldBeFalse();
132
GetFirstNodeWithProjectNumber(graph, 3).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
171
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("AnyCPU");
172
GetFirstNodeWithProjectNumber(graph, 3).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("AnyCPU");
200
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x64");
228
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
255
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("AnyCPU");
283
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
313
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
.ContainsKey("Platform").ShouldBeFalse();
Graph\GraphLoadedFromSolution_tests.cs (2)
717
return node.ProjectInstance.
GlobalProperties
["Configuration"];
722
return node.ProjectInstance.
GlobalProperties
["Platform"];
Graph\GraphTestingUtilities.cs (4)
60
string expectedPropertiesMetadata = $"{InnerBuildPropertyName}={innerBuild.ProjectInstance.
GlobalProperties
[InnerBuildPropertyName]}";
95
node.ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(EmptyGlobalProperties.AddRange(additionalGlobalProperties));
106
outerBuild.ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(EmptyGlobalProperties.AddRange(additionalGlobalProperties));
124
innerBuild.ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(
Graph\ProjectGraph_Tests.cs (39)
373
root1.ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(globalPropertiesFor1);
374
root1.ProjectReferences.First(r => GetProjectNumber(r) == 3).ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(globalPropertiesFor1);
375
root1.ProjectReferences.First(r => GetProjectNumber(r) == 4).ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(globalPropertiesFor1);
380
root2.ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(globalPropertiesFor2);
381
root2.ProjectReferences.First(r => GetProjectNumber(r) == 4).ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(globalPropertiesFor2);
382
root2.ProjectReferences.First(r => GetProjectNumber(r) == 5).ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(globalPropertiesFor2);
412
GetFirstNodeWithProjectNumber(graph, 2).ProjectReferences.First().ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(EmptyGlobalProperties);
414
GetFirstNodeWithProjectNumber(graph, 3).ProjectReferences.First().ProjectInstance.
GlobalProperties
.Count.ShouldBeGreaterThan(1);
433
GetFirstNodeWithProjectNumber(graph, 3).ProjectInstance.
GlobalProperties
["A"].ShouldBe("B");
541
GetFirstNodeWithProjectNumber(graph, 2).ProjectReferences.First().ProjectInstance.
GlobalProperties
["FoO"].ShouldBe("bar");
546
GetFirstNodeWithProjectNumber(graph, 4).ProjectReferences.First().ProjectInstance.
GlobalProperties
["FoO"].ShouldBe("BAR");
613
entryPointNode1.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
614
entryPointNode2.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x64");
621
entryPointNode1.ProjectReferences.First().ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
622
entryPointNode2.ProjectReferences.First().ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x64");
652
entryPointNode1.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
653
entryPointNode2.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x64");
659
entryPointNode1.ProjectReferences.First().ProjectInstance.
GlobalProperties
.ContainsKey("Platform").ShouldBeFalse();
870
project1Node.ProjectInstance.
GlobalProperties
["Configuration"].ShouldBe("Debug");
871
project1Node.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
876
project2Node.ProjectInstance.
GlobalProperties
["Configuration"].ShouldBe("Debug");
877
project2Node.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("Win32");
882
project3Node.ProjectInstance.
GlobalProperties
["Configuration"].ShouldBe("Debug");
883
project3Node.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("Win32");
889
project4Node.ProjectInstance.
GlobalProperties
.ContainsKey("Configuration").ShouldBeFalse();
890
project4Node.ProjectInstance.
GlobalProperties
.ContainsKey("Platform").ShouldBeFalse();
895
project5Node.ProjectInstance.
GlobalProperties
["Configuration"].ShouldBe("Debug");
896
project5Node.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("Win32");
901
project6Node.ProjectInstance.
GlobalProperties
["Configuration"].ShouldBe("Debug");
902
project6Node.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
909
project8Node.ProjectInstance.
GlobalProperties
["Configuration"].ShouldBe("Debug");
910
project8Node.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
1861
foreach (var globalProperty in node.ProjectInstance.
GlobalProperties
)
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");
2221
var innerBuild1WithReferenceToInnerBuild2 = outerBuild1.ProjectReferences.FirstOrDefault(n => n.ProjectType == ProjectInterpretation.ProjectType.InnerBuild && n.ProjectInstance.
GlobalProperties
[InnerBuildPropertyName] == "a");
2230
innerBuild2.ProjectInstance.
GlobalProperties
[InnerBuildPropertyName].ShouldBe("a");
2337
node.ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(expectedGlobalProperties);
2352
projectGraph.ProjectNodes.First().ProjectInstance.
GlobalProperties
[PropertyNames.IsGraphBuild].ShouldBe("xyz");
TestComparers\ProjectInstanceModelTestComparers.cs (2)
29
Helpers.AssertDictionariesEqual(x.
GlobalProperties
, y.
GlobalProperties
);
MSBuild (2)
XMake.cs (2)
1579
nodeResultKvp.Key.ProjectInstance.
GlobalProperties
.Count == entryPoint.GlobalProperties.Count &&
1580
nodeResultKvp.Key.ProjectInstance.
GlobalProperties
.All(propertyKvp => entryPoint.GlobalProperties.TryGetValue(propertyKvp.Key, out string entryValue) &&