62 references to GlobalProperties
Microsoft.Build (3)
Definition\ProjectCollection.cs (1)
2016if (HasEquivalentGlobalPropertiesAndToolsVersion(existing, project.GlobalProperties, project.ToolsVersion))
Instance\ProjectInstance.cs (1)
459var globalPropertiesRetrievableHashSet = new ImmutableGlobalPropertiesCollectionConverter(linkedProject.GlobalProperties, _properties);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
37/// Access to remote <see cref="Project.GlobalProperties"/>.
Microsoft.Build.Engine.OM.UnitTests (50)
Definition\Project_Tests.cs (9)
817project.GlobalProperties["g1"].ShouldBe("v1"); 818project.GlobalProperties["g2"].ShouldBe("v2"); 835project.GlobalProperties["g1"].ShouldBe("v1"); 836project.GlobalProperties.ContainsKey("g2").ShouldBeFalse(); 848project.GlobalProperties.ShouldBeEmpty(); 868project.GlobalProperties["g"].ShouldBe("v1"); 973project.GlobalProperties["p0"].ShouldBe("v0"); 974project.GlobalProperties["p1"].ShouldBe("v1b"); 1040project.GlobalProperties.ContainsKey("g").ShouldBeFalse();
Definition\ProjectCollection_Tests.cs (33)
171Assert.Equal("v", project.GlobalProperties["p"]); 202Assert.Equal("v", project.GlobalProperties["p"]); 233Assert.Equal("v", project.GlobalProperties["p"]); 257Assert.Equal("v", project.GlobalProperties["p"]); 273Assert.Equal("v", project.GlobalProperties["p"]); 287Assert.Equal("v", project.GlobalProperties["p"]); 393Assert.Equal("Debug", project.GlobalProperties["Configuration"]); 450Assert.Equal("Debug", project.GlobalProperties["Configuration"]); 461Assert.Equal("Release", project2.GlobalProperties["Configuration"]); 466Assert.Equal("X64", project.GlobalProperties["Platform"]); 467Assert.Equal("X64", project2.GlobalProperties["Platform"]); 471Assert.Equal("Itanium", project2.GlobalProperties["Platform"]); 588Assert.Empty(project1.GlobalProperties); 594Assert.Equal(2, project1.GlobalProperties.Count); 599Assert.Single(project1.GlobalProperties); 600Assert.Equal("v1", project2.GlobalProperties["g1"]); 602Assert.Single(project2.GlobalProperties); 603Assert.Equal("v1", project2.GlobalProperties["g1"]); 622Assert.Equal(2, project1.GlobalProperties.Count); 623Assert.Equal("v1", project1.GlobalProperties["g1"]); 624Assert.Equal("v2", project1.GlobalProperties["g2"]); // Got overwritten 637Assert.Empty(project1.GlobalProperties); 650Assert.Equal(2, project1.GlobalProperties.Count); 651Assert.Equal("v1", project2.GlobalProperties["g1"]); 653Assert.Equal(2, project2.GlobalProperties.Count); 654Assert.Equal("v1", project2.GlobalProperties["g1"]); 664Assert.Single(project1.GlobalProperties); 665Assert.Single(project2.GlobalProperties); 669Assert.Empty(project1.GlobalProperties); 670Assert.Empty(project2.GlobalProperties); 689Assert.Empty(project1.GlobalProperties); 814Assert.Equal("Debug", project.GlobalProperties["Configuration"]); 818Assert.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)
3278Assert.Equal("Baz", project.GlobalProperties["Foo"]); 3310Assert.Equal("Baz", project.GlobalProperties["Foo"]); 3312Assert.Equal("Foo", project.GlobalProperties["Goo"]); 3318Assert.Equal("Baz", project.GlobalProperties["Foo"]); 3320Assert.Equal("Foo", project.GlobalProperties["Goo"]); 3345Assert.False(project.GlobalProperties.ContainsKey("Foo")); 3351Assert.Equal("Baz", project.GlobalProperties["Foo"]); 3357Assert.False(project.GlobalProperties.ContainsKey("Foo"));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
294if (!project.GlobalProperties.TryGetValue(PropertyNames.TargetFramework, out var initialGlobalTargetFrameworkValue))