62 references to GlobalProperties
Microsoft.Build (3)
Definition\ProjectCollection.cs (1)
2548
if (HasEquivalentGlobalPropertiesAndToolsVersion(existing, project.
GlobalProperties
, project.ToolsVersion))
Instance\ProjectInstance.cs (1)
456
var 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)
817
project.
GlobalProperties
["g1"].ShouldBe("v1");
818
project.
GlobalProperties
["g2"].ShouldBe("v2");
835
project.
GlobalProperties
["g1"].ShouldBe("v1");
836
project.
GlobalProperties
.ContainsKey("g2").ShouldBeFalse();
848
project.
GlobalProperties
.ShouldBeEmpty();
868
project.
GlobalProperties
["g"].ShouldBe("v1");
973
project.
GlobalProperties
["p0"].ShouldBe("v0");
974
project.
GlobalProperties
["p1"].ShouldBe("v1b");
1040
project.
GlobalProperties
.ContainsKey("g").ShouldBeFalse();
Definition\ProjectCollection_Tests.cs (33)
170
Assert.Equal("v", project.
GlobalProperties
["p"]);
201
Assert.Equal("v", project.
GlobalProperties
["p"]);
232
Assert.Equal("v", project.
GlobalProperties
["p"]);
256
Assert.Equal("v", project.
GlobalProperties
["p"]);
272
Assert.Equal("v", project.
GlobalProperties
["p"]);
286
Assert.Equal("v", project.
GlobalProperties
["p"]);
392
Assert.Equal("Debug", project.
GlobalProperties
["Configuration"]);
449
Assert.Equal("Debug", project.
GlobalProperties
["Configuration"]);
460
Assert.Equal("Release", project2.
GlobalProperties
["Configuration"]);
465
Assert.Equal("X64", project.
GlobalProperties
["Platform"]);
466
Assert.Equal("X64", project2.
GlobalProperties
["Platform"]);
470
Assert.Equal("Itanium", project2.
GlobalProperties
["Platform"]);
587
Assert.Empty(project1.
GlobalProperties
);
593
Assert.Equal(2, project1.
GlobalProperties
.Count);
598
Assert.Single(project1.
GlobalProperties
);
599
Assert.Equal("v1", project2.
GlobalProperties
["g1"]);
601
Assert.Single(project2.
GlobalProperties
);
602
Assert.Equal("v1", project2.
GlobalProperties
["g1"]);
621
Assert.Equal(2, project1.
GlobalProperties
.Count);
622
Assert.Equal("v1", project1.
GlobalProperties
["g1"]);
623
Assert.Equal("v2", project1.
GlobalProperties
["g2"]); // Got overwritten
636
Assert.Empty(project1.
GlobalProperties
);
649
Assert.Equal(2, project1.
GlobalProperties
.Count);
650
Assert.Equal("v1", project2.
GlobalProperties
["g1"]);
652
Assert.Equal(2, project2.
GlobalProperties
.Count);
653
Assert.Equal("v1", project2.
GlobalProperties
["g1"]);
663
Assert.Single(project1.
GlobalProperties
);
664
Assert.Single(project2.
GlobalProperties
);
668
Assert.Empty(project1.
GlobalProperties
);
669
Assert.Empty(project2.
GlobalProperties
);
688
Assert.Empty(project1.
GlobalProperties
);
813
Assert.Equal("Debug", project.
GlobalProperties
["Configuration"]);
817
Assert.Equal("Debug", project.
GlobalProperties
["Configuration"]);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
341
Verify(view.
GlobalProperties
, real.
GlobalProperties
, (a, b, p) => Assert.Equal(b, a), context);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (5)
315
Assert.False(pair.View.
GlobalProperties
.ContainsKey("gp1"));
316
Assert.False(pair.View.
GlobalProperties
.ContainsKey("Configuration"));
321
Assert.True(pair.View.
GlobalProperties
.ContainsKey("gp1"));
322
Assert.True(pair.Real.
GlobalProperties
.ContainsKey("gp1"));
331
Assert.True(pair.View.
GlobalProperties
.ContainsKey("Configuration"));
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (1)
37
public IDictionary<string, string> GlobalProperties => this.Source.
GlobalProperties
;
Microsoft.Build.Engine.UnitTests (8)
Evaluation\Evaluator_Tests.cs (8)
3243
Assert.Equal("Baz", project.
GlobalProperties
["Foo"]);
3275
Assert.Equal("Baz", project.
GlobalProperties
["Foo"]);
3277
Assert.Equal("Foo", project.
GlobalProperties
["Goo"]);
3283
Assert.Equal("Baz", project.
GlobalProperties
["Foo"]);
3285
Assert.Equal("Foo", project.
GlobalProperties
["Goo"]);
3310
Assert.False(project.
GlobalProperties
.ContainsKey("Foo"));
3316
Assert.Equal("Baz", project.
GlobalProperties
["Foo"]);
3322
Assert.False(project.
GlobalProperties
.ContainsKey("Foo"));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\ProjectFile.cs (1)
69
if (!_loadedProject.
GlobalProperties
.TryGetValue(PropertyNames.TargetFramework, out var initialGlobalTargetFrameworkValue))