60 references to GlobalProperties
Microsoft.Build (2)
Definition\ProjectCollection.cs (1)
2534if (HasEquivalentGlobalPropertiesAndToolsVersion(existing, project.GlobalProperties, project.ToolsVersion))
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
39/// Access to remote <see cref="Project.GlobalProperties"/>.
Microsoft.Build.Engine.OM.UnitTests (50)
Definition\Project_Tests.cs (9)
807project.GlobalProperties["g1"].ShouldBe("v1"); 808project.GlobalProperties["g2"].ShouldBe("v2"); 825project.GlobalProperties["g1"].ShouldBe("v1"); 826project.GlobalProperties.ContainsKey("g2").ShouldBeFalse(); 838project.GlobalProperties.ShouldBeEmpty(); 858project.GlobalProperties["g"].ShouldBe("v1"); 963project.GlobalProperties["p0"].ShouldBe("v0"); 964project.GlobalProperties["p1"].ShouldBe("v1b"); 1030project.GlobalProperties.ContainsKey("g").ShouldBeFalse();
Definition\ProjectCollection_Tests.cs (33)
170Assert.Equal("v", project.GlobalProperties["p"]); 201Assert.Equal("v", project.GlobalProperties["p"]); 232Assert.Equal("v", project.GlobalProperties["p"]); 256Assert.Equal("v", project.GlobalProperties["p"]); 272Assert.Equal("v", project.GlobalProperties["p"]); 286Assert.Equal("v", project.GlobalProperties["p"]); 392Assert.Equal("Debug", project.GlobalProperties["Configuration"]); 449Assert.Equal("Debug", project.GlobalProperties["Configuration"]); 460Assert.Equal("Release", project2.GlobalProperties["Configuration"]); 465Assert.Equal("X64", project.GlobalProperties["Platform"]); 466Assert.Equal("X64", project2.GlobalProperties["Platform"]); 470Assert.Equal("Itanium", project2.GlobalProperties["Platform"]); 583Assert.Empty(project1.GlobalProperties); 589Assert.Equal(2, project1.GlobalProperties.Count); 594Assert.Single(project1.GlobalProperties); 595Assert.Equal("v1", project2.GlobalProperties["g1"]); 597Assert.Single(project2.GlobalProperties); 598Assert.Equal("v1", project2.GlobalProperties["g1"]); 617Assert.Equal(2, project1.GlobalProperties.Count); 618Assert.Equal("v1", project1.GlobalProperties["g1"]); 619Assert.Equal("v2", project1.GlobalProperties["g2"]); // Got overwritten 632Assert.Empty(project1.GlobalProperties); 645Assert.Equal(2, project1.GlobalProperties.Count); 646Assert.Equal("v1", project2.GlobalProperties["g1"]); 648Assert.Equal(2, project2.GlobalProperties.Count); 649Assert.Equal("v1", project2.GlobalProperties["g1"]); 659Assert.Single(project1.GlobalProperties); 660Assert.Single(project2.GlobalProperties); 664Assert.Empty(project1.GlobalProperties); 665Assert.Empty(project2.GlobalProperties); 684Assert.Empty(project1.GlobalProperties); 809Assert.Equal("Debug", project.GlobalProperties["Configuration"]); 813Assert.Equal("Debug", project.GlobalProperties["Configuration"]);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
341Verify(view.GlobalProperties, real.GlobalProperties, (a, b, p) => Assert.Equal(b, a), context);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (5)
315Assert.False(pair.View.GlobalProperties.ContainsKey("gp1")); 316Assert.False(pair.View.GlobalProperties.ContainsKey("Configuration")); 321Assert.True(pair.View.GlobalProperties.ContainsKey("gp1")); 322Assert.True(pair.Real.GlobalProperties.ContainsKey("gp1")); 331Assert.True(pair.View.GlobalProperties.ContainsKey("Configuration"));
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (1)
37public IDictionary<string, string> GlobalProperties => this.Source.GlobalProperties;
Microsoft.Build.Engine.UnitTests (8)
Evaluation\Evaluator_Tests.cs (8)
3168Assert.Equal("Baz", project.GlobalProperties["Foo"]); 3199Assert.Equal("Baz", project.GlobalProperties["Foo"]); 3201Assert.Equal("Foo", project.GlobalProperties["Goo"]); 3207Assert.Equal("Baz", project.GlobalProperties["Foo"]); 3209Assert.Equal("Foo", project.GlobalProperties["Goo"]); 3233Assert.False(project.GlobalProperties.ContainsKey("Foo")); 3239Assert.Equal("Baz", project.GlobalProperties["Foo"]); 3245Assert.False(project.GlobalProperties.ContainsKey("Foo"));