73 references to GlobalProperties
Microsoft.Build (6)
BackEnd\Shared\BuildResult.cs (2)
132
/// be used to retrieve <see cref="ProjectInstance.Properties"/>, <see cref="ProjectInstance.
GlobalProperties
"/> and
408
/// be used to retrieve <see cref="ProjectInstance.Properties"/>, <see cref="ProjectInstance.
GlobalProperties
"/> and
Graph\GraphBuildRequestData.cs (1)
221
return node.ProjectInstance.
GlobalProperties
.AsReadOnly();
Graph\ProjectGraph.cs (1)
521
node.ProjectInstance.
GlobalProperties
.OrderBy(kvp => kvp.Key)
Graph\ProjectGraphNode.cs (1)
56
$"{truncatedProjectFile}, #GlobalProps={ProjectInstance.
GlobalProperties
.Count}, #Props={ProjectInstance.Properties.Count}, #Items={ProjectInstance.Items.Count}, #in={ReferencingProjects.Count}, #out={ProjectReferences.Count}";
Instance\ProjectInstance.cs (1)
2327
/// 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)
3709
Assert.Empty(mainInstance.
GlobalProperties
);
3744
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)
60
GetFirstNodeWithProjectNumber(graph, 1).ProjectInstance.
GlobalProperties
.ContainsKey("Platform").ShouldBeFalse();
100
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
101
GetFirstNodeWithProjectNumber(graph, 3).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
142
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
.ContainsKey("Platform").ShouldBeFalse();
143
GetFirstNodeWithProjectNumber(graph, 3).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
182
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("AnyCPU");
183
GetFirstNodeWithProjectNumber(graph, 3).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("AnyCPU");
211
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x64");
239
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
266
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("AnyCPU");
294
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
324
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GlobalProperties
.ContainsKey("Platform").ShouldBeFalse();
Graph\GraphLoadedFromSolution_tests.cs (2)
718
return node.ProjectInstance.
GlobalProperties
["Configuration"];
723
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)
372
root1.ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(globalPropertiesFor1);
373
root1.ProjectReferences.First(r => GetProjectNumber(r) == 3).ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(globalPropertiesFor1);
374
root1.ProjectReferences.First(r => GetProjectNumber(r) == 4).ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(globalPropertiesFor1);
379
root2.ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(globalPropertiesFor2);
380
root2.ProjectReferences.First(r => GetProjectNumber(r) == 4).ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(globalPropertiesFor2);
381
root2.ProjectReferences.First(r => GetProjectNumber(r) == 5).ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(globalPropertiesFor2);
411
GetFirstNodeWithProjectNumber(graph, 2).ProjectReferences.First().ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(EmptyGlobalProperties);
413
GetFirstNodeWithProjectNumber(graph, 3).ProjectReferences.First().ProjectInstance.
GlobalProperties
.Count.ShouldBeGreaterThan(1);
432
GetFirstNodeWithProjectNumber(graph, 3).ProjectInstance.
GlobalProperties
["A"].ShouldBe("B");
540
GetFirstNodeWithProjectNumber(graph, 2).ProjectReferences.First().ProjectInstance.
GlobalProperties
["FoO"].ShouldBe("bar");
545
GetFirstNodeWithProjectNumber(graph, 4).ProjectReferences.First().ProjectInstance.
GlobalProperties
["FoO"].ShouldBe("BAR");
612
entryPointNode1.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
613
entryPointNode2.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x64");
620
entryPointNode1.ProjectReferences.First().ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
621
entryPointNode2.ProjectReferences.First().ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x64");
651
entryPointNode1.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
652
entryPointNode2.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x64");
658
entryPointNode1.ProjectReferences.First().ProjectInstance.
GlobalProperties
.ContainsKey("Platform").ShouldBeFalse();
869
project1Node.ProjectInstance.
GlobalProperties
["Configuration"].ShouldBe("Debug");
870
project1Node.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
875
project2Node.ProjectInstance.
GlobalProperties
["Configuration"].ShouldBe("Debug");
876
project2Node.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("Win32");
881
project3Node.ProjectInstance.
GlobalProperties
["Configuration"].ShouldBe("Debug");
882
project3Node.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("Win32");
888
project4Node.ProjectInstance.
GlobalProperties
.ContainsKey("Configuration").ShouldBeFalse();
889
project4Node.ProjectInstance.
GlobalProperties
.ContainsKey("Platform").ShouldBeFalse();
894
project5Node.ProjectInstance.
GlobalProperties
["Configuration"].ShouldBe("Debug");
895
project5Node.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("Win32");
900
project6Node.ProjectInstance.
GlobalProperties
["Configuration"].ShouldBe("Debug");
901
project6Node.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
908
project8Node.ProjectInstance.
GlobalProperties
["Configuration"].ShouldBe("Debug");
909
project8Node.ProjectInstance.
GlobalProperties
["Platform"].ShouldBe("x86");
1860
foreach (var globalProperty in node.ProjectInstance.
GlobalProperties
)
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");
2220
var innerBuild1WithReferenceToInnerBuild2 = outerBuild1.ProjectReferences.FirstOrDefault(n => n.ProjectType == ProjectInterpretation.ProjectType.InnerBuild && n.ProjectInstance.
GlobalProperties
[InnerBuildPropertyName] == "a");
2229
innerBuild2.ProjectInstance.
GlobalProperties
[InnerBuildPropertyName].ShouldBe("a");
2336
node.ProjectInstance.
GlobalProperties
.ShouldBeSameIgnoringOrder(expectedGlobalProperties);
2351
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)
1622
nodeResultKvp.Key.ProjectInstance.
GlobalProperties
.Count == entryPoint.GlobalProperties.Count &&
1623
nodeResultKvp.Key.ProjectInstance.
GlobalProperties
.All(propertyKvp => entryPoint.GlobalProperties.TryGetValue(propertyKvp.Key, out string entryValue) &&