62 references to GlobalProperties
Microsoft.Build (3)
Definition\ProjectCollection.cs (1)
2548if (HasEquivalentGlobalPropertiesAndToolsVersion(existing, project.GlobalProperties, project.ToolsVersion))
Instance\ProjectInstance.cs (1)
456var globalPropertiesRetrievableHashSet = new ImmutableGlobalPropertiesCollectionConverter(linkedProject.GlobalProperties, _properties);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
39/// 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)
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"]); 587Assert.Empty(project1.GlobalProperties); 593Assert.Equal(2, project1.GlobalProperties.Count); 598Assert.Single(project1.GlobalProperties); 599Assert.Equal("v1", project2.GlobalProperties["g1"]); 601Assert.Single(project2.GlobalProperties); 602Assert.Equal("v1", project2.GlobalProperties["g1"]); 621Assert.Equal(2, project1.GlobalProperties.Count); 622Assert.Equal("v1", project1.GlobalProperties["g1"]); 623Assert.Equal("v2", project1.GlobalProperties["g2"]); // Got overwritten 636Assert.Empty(project1.GlobalProperties); 649Assert.Equal(2, project1.GlobalProperties.Count); 650Assert.Equal("v1", project2.GlobalProperties["g1"]); 652Assert.Equal(2, project2.GlobalProperties.Count); 653Assert.Equal("v1", project2.GlobalProperties["g1"]); 663Assert.Single(project1.GlobalProperties); 664Assert.Single(project2.GlobalProperties); 668Assert.Empty(project1.GlobalProperties); 669Assert.Empty(project2.GlobalProperties); 688Assert.Empty(project1.GlobalProperties); 813Assert.Equal("Debug", project.GlobalProperties["Configuration"]); 817Assert.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)
3243Assert.Equal("Baz", project.GlobalProperties["Foo"]); 3275Assert.Equal("Baz", project.GlobalProperties["Foo"]); 3277Assert.Equal("Foo", project.GlobalProperties["Goo"]); 3283Assert.Equal("Baz", project.GlobalProperties["Foo"]); 3285Assert.Equal("Foo", project.GlobalProperties["Goo"]); 3310Assert.False(project.GlobalProperties.ContainsKey("Foo")); 3316Assert.Equal("Baz", project.GlobalProperties["Foo"]); 3322Assert.False(project.GlobalProperties.ContainsKey("Foo"));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\ProjectFile.cs (1)
69if (!_loadedProject.GlobalProperties.TryGetValue(PropertyNames.TargetFramework, out var initialGlobalTargetFrameworkValue))