14 writes to
Microsoft.Build (11)
BackEnd\BuildManager\BuildParameters.cs (1)
470_globalProperties[property.Key] = ProjectPropertyInstance.Create(property.Key, property.Value);
BackEnd\Components\Communications\TranslatorExtensions.cs (1)
47value[instance.Name] = instance;
BackEnd\Shared\BuildRequestConfiguration.cs (1)
522_globalProperties[key] = ProjectPropertyInstance.Create(key, "Forces unique project identity in the MSBuild engine");
BackEnd\Shared\ConfigurationMetadata.cs (1)
42_globalProperties[entry.Key] = ProjectPropertyInstance.Create(entry.Key, entry.Value);
Collections\PropertyDictionary.cs (1)
173set => this[name] = value;
Definition\Project.cs (1)
2948_data.Properties[name] = property;
Graph\GraphBuilder.cs (2)
429globalPropertyDictionary[PropertyNames.IsGraphBuild] = ProjectPropertyInstance.Create(PropertyNames.IsGraphBuild, "true"); 638propertyDictionary[entry.Key] = ProjectPropertyInstance.Create(entry.Key, entry.Value);
Graph\ProjectInterpretation.cs (2)
206properties[propertyName] = propertyInstance; 418destination[pair.Key] = ProjectPropertyInstance.Create(pair.Key, pair.Value);
Instance\ProjectInstance.cs (1)
566_globalProperties[property.Key] = ProjectPropertyInstance.Create(property.Key, property.Value, false /* may not be reserved */, _isImmutable);
Microsoft.Build.Engine.UnitTests (3)
BackEnd\ConfigurationMetadata_Tests.cs (1)
128globalProperties["a"] = ProjectPropertyInstance.Create("a", "b");
Evaluation\Expander_Tests.cs (2)
3556pg["DifferentTargetsPath"] = ProjectPropertyInstance.Create("DifferentTargetsPath", "Different"); 3564pg["DifferentTargetsPath"] = ProjectPropertyInstance.Create("DifferentTargetsPath", String.Empty);
59 references to
Microsoft.Build (35)
BackEnd\Components\Logging\ProjectLoggingContext.cs (1)
232ProjectPropertyInstance instance = projectProperties[propertyToGet];
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
426string? designTimeBuild = buildRequestConfiguration.GlobalProperties[DesignTimeProperties.DesignTimeBuild]?.EvaluatedValue; 427string? buildingProject = buildRequestConfiguration.GlobalProperties[DesignTimeProperties.BuildingProject]?.EvaluatedValue;
BackEnd\Components\RequestBuilder\FullTracking.cs (1)
96ProjectPropertyInstance tlogRelativeDirectoryProperty = projectProperties[FullTrackingDirectoryPropertyName];
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1109bool isRestoring = _requestEntry.RequestConfiguration.GlobalProperties[MSBuildConstants.MSBuildIsRestoring] is not null;
Collections\PropertyDictionary.cs (4)
172get => this[name]; 288T rightProp = other[leftProp.Key]; 307return this[name]; 383value = this[key];
Definition\Project.cs (5)
2893return _data.Properties[name]; 2930ProjectProperty property = _data.Properties[name]; 2963ProjectPropertyInstance existing = _data.GlobalPropertiesDictionary[name]; 4563return Properties[name]; 4628ProjectProperty property = Properties[name];
Definition\ProjectCollection.cs (1)
1431return _globalProperties[name];
Definition\ProjectItem.cs (4)
421result = _directMetadata[name]; 487ProjectMetadata metadatum = _directMetadata[name]; 599metadatum = _directMetadata[name]; 660metadatum = _directMetadata[name];
Definition\ProjectItemDefinition.cs (1)
161metadatum = _metadata[name];
Definition\Toolset.cs (3)
754ProjectPropertyInstance subToolsetProperty = overrideGlobalProperties[Constants.SubToolsetVersionPropertyName]; 786ProjectPropertyInstance visualStudioVersionProperty = _globalProperties[Constants.SubToolsetVersionPropertyName]; 797ProjectPropertyInstance visualStudioVersionProperty = _environmentProperties[Constants.SubToolsetVersionPropertyName];
Definition\ToolsetReader.cs (1)
600if (globalProperties[property.Name] == null)
Evaluation\Evaluator.cs (1)
796ProjectPropertyInstance configurationData = _data.GlobalPropertiesDictionary["currentsolutionconfigurationcontents"];
Instance\ImmutableProjectCollections\ImmutableGlobalPropertiesCollectionConverter.cs (7)
53return _allProperties[key]; 95ProjectPropertyInstance instance = _allProperties[itemKey]; 152ProjectPropertyInstance instance = _allProperties[itemKey]; 188ProjectPropertyInstance actualInstance = _parent._allProperties[item.Name]; 216ProjectPropertyInstance instance = _parent._allProperties[itemKey]; 230ProjectPropertyInstance instance = _parent._allProperties[itemKey]; 242ProjectPropertyInstance instance = _parent._allProperties[itemKey];
Instance\ProjectInstance.cs (3)
1864return _properties[name]; 2307if (!_globalProperties.Contains(property.Name) || !String.Equals(_globalProperties[property.Name].EvaluatedValue, property.EvaluatedValue, StringComparison.OrdinalIgnoreCase)) 2309if (!_environmentVariableProperties.Contains(property.Name) || !String.Equals(_environmentVariableProperties[property.Name].EvaluatedValue, property.EvaluatedValue, StringComparison.OrdinalIgnoreCase))
Microsoft.Build.Engine.UnitTests (24)
BackEnd\BuildRequestConfiguration_Tests.cs (6)
373Assert.Equal("1", instance.PropertiesToBuildWith["One"].EvaluatedValue); 374Assert.Equal("2", instance.PropertiesToBuildWith["Two"].EvaluatedValue); 375Assert.Equal("3", instance.PropertiesToBuildWith["Three"].EvaluatedValue); 401Assert.Equal("1", instance.PropertiesToBuildWith["One"].EvaluatedValue); 402Assert.Equal("2", instance.PropertiesToBuildWith["Two"].EvaluatedValue); 403Assert.Equal("3", instance.PropertiesToBuildWith["Three"].EvaluatedValue);
BackEnd\IntrinsicTask_Tests.cs (8)
45Assert.Equal("v1", properties["p1"].EvaluatedValue); 46Assert.Equal("v2", properties["p2"].EvaluatedValue); 65Assert.Equal("v1", properties["p1"].EvaluatedValue); 137Assert.Equal("", properties["p1"].EvaluatedValue); 978Assert.Equal("v0", properties["p0"].EvaluatedValue); 979Assert.Equal("v0", properties["p1"].EvaluatedValue); 1153Assert.Equal("v2", properties["p1"].EvaluatedValue); 1154Assert.Equal("#v1#", properties["p2"].EvaluatedValue);
BackEnd\Lookup_Tests.cs (3)
1256Assert.Equal("v1", group["p1"].EvaluatedValue); 1265Assert.Equal("v1", group["p1"].EvaluatedValue); 1284Assert.Equal("v4", group["p1"].EvaluatedValue);
Collections\OMcollections_tests.cs (3)
48Assert.Equal("v1", properties["p1"].EvaluatedValue); 49Assert.Equal("v3", properties["p2"].EvaluatedValue); 52Assert.Null(properties["p1"]);
Instance\ProjectInstance_Internal_Tests.cs (4)
270p.GlobalPropertiesDictionary["g1"].EvaluatedValue.ShouldBe("v1"); 271p.GlobalPropertiesDictionary["g2"].EvaluatedValue.ShouldBe("v2"); 504second.GlobalPropertiesDictionary["g1"].EvaluatedValue.ShouldBe("v1"); 505second.GlobalPropertiesDictionary["g2"].EvaluatedValue.ShouldBe("v2");