46 references to SetGlobalProperty
Microsoft.Build (3)
Definition\Project.cs (1)
602/// <see cref="SetGlobalProperty">SetGlobalProperty</see> and <see cref="RemoveGlobalProperty">RemoveGlobalProperty</see>.
Definition\ProjectCollection.cs (1)
1456project.SetGlobalProperty(name, value);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
179/// Facilitate remoting the <see cref="Project.SetGlobalProperty"/>.
Microsoft.Build.Engine.OM.UnitTests (24)
Definition\Project_Tests.cs (12)
864project.SetGlobalProperty("g", "v1").ShouldBeTrue(); 878project.SetGlobalProperty("p", "v1"); 880project.SetGlobalProperty("p", "v2"); 893project.SetGlobalProperty("p", "v1"); 900project.SetGlobalProperty("g", "v1"); 905project.SetGlobalProperty("g", "v1"); 920project.SetGlobalProperty("p", "v1"); 969project.SetGlobalProperty("p1", "v1b"); 998project.SetGlobalProperty("p1", "v1b"); 1013project.SetGlobalProperty("g", "v1"); 1017project.SetGlobalProperty("g", "v1").ShouldBeFalse(); 1031project.SetGlobalProperty("g", "v1");
Definition\ProjectCollection_Tests.cs (8)
452project.SetGlobalProperty("MyProperty", "MyValue"); 469project2.SetGlobalProperty("Platform", "Itanium"); 570project.SetGlobalProperty("p", "v1"); // should update collection 615project1.SetGlobalProperty("g1", "v0"); 683project1.SetGlobalProperty("g1", "v0"); // mask collection property 1376project.SetGlobalProperty("q", "s"); 1416project.SetGlobalProperty("someGlobal", "someValue"); 1425project.SetGlobalProperty("someGlobal", "someValue2");
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (3)
320pair.View.SetGlobalProperty("gp1", "GP1V"); 330pair.Real.SetGlobalProperty("Configuration", "Foo"); 357pair.Real.SetGlobalProperty("xxx", "XXX");
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (1)
110public bool SetGlobalProperty(string name, string escapedValue) => this.Source.SetGlobalProperty(name, escapedValue);
Microsoft.Build.Engine.UnitTests (16)
Construction\SolutionProjectGenerator_Tests.cs (10)
855msbuildProject.SetGlobalProperty("Configuration", "Debug"); 856msbuildProject.SetGlobalProperty("Platform", "Any CPU"); 1108msbuildProject.SetGlobalProperty("Configuration", "Debug"); 1109msbuildProject.SetGlobalProperty("Platform", "Mixed Platforms"); 1128msbuildProject.SetGlobalProperty("Configuration", "Release"); 1129msbuildProject.SetGlobalProperty("Platform", "Any CPU"); 1178msbuildProject.SetGlobalProperty("Configuration", "Debug"); 1179msbuildProject.SetGlobalProperty("Platform", "Mixed Platforms"); 1223msbuildProject.SetGlobalProperty("Configuration", "Debug"); 1224msbuildProject.SetGlobalProperty("Platform", "Mixed Platforms");
EscapingInProjects_Tests.cs (1)
687project.SetGlobalProperty("MyGlobalProperty", "foo%253bbar");
Evaluation\Evaluator_Tests.cs (5)
2498project.SetGlobalProperty("MSBuildExtensionsPath", @"c:\devdiv\vscore\msbuild"); 2573project.SetGlobalProperty("MSBuildExtensionsPath32", @"c:\devdiv\vscore\msbuild"); 2648project.SetGlobalProperty("MSBuildExtensionsPath64", @"c:\devdiv\vscore\msbuild"); 2705project.SetGlobalProperty("LocalAppData", @"c:\AppData\Local"); 3312project.SetGlobalProperty("Foo", "Baz");
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
1034project.SetGlobalProperty(globalProperty.Key, globalProperty.Value);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
MSBuild\ProjectFile\ProjectFile.cs (2)
75_loadedProject.SetGlobalProperty(PropertyNames.TargetFramework, targetFramework); 89_loadedProject.SetGlobalProperty(PropertyNames.TargetFramework, initialGlobalTargetFrameworkValue);