Implemented interface member:
property
Name
Microsoft.Build.Evaluation.IProperty.Name
59 references to Name
Microsoft.Build (38)
BackEnd\Components\Communications\TranslatorExtensions.cs (1)
47value[instance.Name] = instance;
BackEnd\Components\Logging\ProjectLoggingContext.cs (4)
214properties = projectProperties.GetCopyOnReadEnumerable(property => new DictionaryEntry(property.Name, property.EvaluatedValue)); 218properties = projectProperties.Filter(p => p is not EnvironmentDerivedProjectPropertyInstance || EnvironmentUtilities.IsWellKnownEnvironmentDerivedProperty(p.Name), p => new DictionaryEntry(p.Name, p.EvaluatedValue)); 241properties = projectPropertiesToSerialize.Select((ProjectPropertyInstance property) => new DictionaryEntry(property.Name, property.EvaluatedValue));
BackEnd\Components\ProjectCache\ProjectCacheService.cs (3)
332globalProperties.Add(property.Name, property.EvaluatedValue); 629if (!s_projectSpecificPropertyNames.Contains(property.Name)) 631globalProperties.Add(property.Name, property.EvaluatedValue);
BackEnd\Components\RequestBuilder\Lookup.cs (2)
208if (String.Equals(property.Name, ReservedPropertyNames.lastTaskResult, StringComparison.OrdinalIgnoreCase)) 213string propertyName = property.Name;
BackEnd\Components\Scheduler\Scheduler.cs (2)
2047return string.Join("; ", configuration.GlobalProperties.Select<ProjectPropertyInstance, string>(p => $"{p.Name}={p.EvaluatedValue}")); 2723file.WriteLine("{0} = \"{1}\"", property.Name, property.EvaluatedValue);
BackEnd\Shared\BuildRequestConfiguration.cs (2)
397_project.SetProperty(property.Name, ((IProperty)property).EvaluatedValueEscaped); 458globalProperties.Add(property.Name, ((IProperty)property).EvaluatedValueEscaped);
Construction\Solution\SolutionProjectGenerator.cs (1)
2079properties[globalProperty.Name] = ((IProperty)globalProperty).EvaluatedValueEscaped;
Definition\Project.cs (2)
2128yield return new KeyValuePair<string, string>(property.Name, ((IProperty)property).EvaluatedValueEscaped); 2155dictionary[property.Name] = ((IProperty)property).EvaluatedValueEscaped;
Definition\ProjectCollection.cs (1)
573dictionary[property.Name] = ((IProperty)property).EvaluatedValueEscaped;
Evaluation\Evaluator.cs (6)
802if (!String.Equals(entry.Name, "currentsolutionconfigurationcontents", StringComparison.OrdinalIgnoreCase)) 804propertyDump += entry.Name + "=" + entry.EvaluatedValue + "\n"; 1199_data.SetProperty(environmentProperty.Name, ((IProperty)environmentProperty).EvaluatedValueEscaped, isGlobalProperty: false, mayBeReserved: false, isEnvironmentVariable: true, loggingContext: _evaluationLoggingContext); 1210_data.SetProperty(toolsetProperty.Name, ((IProperty)toolsetProperty).EvaluatedValueEscaped, false /* NOT global property */, false /* may NOT be a reserved name */, loggingContext: _evaluationLoggingContext); 1236_data.SetProperty(subToolsetProperty.Name, ((IProperty)subToolsetProperty).EvaluatedValueEscaped, false /* NOT global property */, false /* may NOT be a reserved name */, loggingContext: _evaluationLoggingContext); 1254_data.SetProperty(globalProperty.Name, ((IProperty)globalProperty).EvaluatedValueEscaped, true /* IS global property */, false /* may NOT be a reserved name */, loggingContext: _evaluationLoggingContext);
Instance\ImmutableProjectCollections\ImmutableGlobalPropertiesCollectionConverter.cs (3)
115if (actualProperty != null && _globalProperties.ContainsKey(actualProperty.Name)) 183if (!_parent._globalProperties.ContainsKey(item.Name)) 188ProjectPropertyInstance actualInstance = _parent._allProperties[item.Name];
Instance\ProjectInstance.cs (7)
1084dictionary[property.Name] = ((IProperty)property).EvaluatedValueEscaped; 2304if (!ReservedPropertyNames.IsReservedProperty(property.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)) 2551globalProperties[propertyInstance.Name] = ((IProperty)propertyInstance).EvaluatedValueEscaped;
Instance\ProjectPropertyInstance.cs (4)
104EnvironmentVariableReadEventArgs args = new(Name, _escapedValue, string.Empty, 0, 0); 118EnvironmentVariableReadEventArgs args = new(Name, _escapedValue, location.File, location.Line, location.Column); 134string IKeyed.Key => Name; 308ProjectPropertyElement property = parent.ContainingProject.CreatePropertyElement(Name);
Microsoft.Build.Engine.OM.UnitTests (1)
Instance\ProjectPropertyInstance_Tests.cs (1)
26Assert.Equal("p", property.Name);
Microsoft.Build.Engine.UnitTests (20)
BackEnd\BuildManager_Tests.cs (3)
521result.ProjectStateAfterBuild.Properties.ShouldNotContain(p => p.Name == "UnrequestedProperty"); 523result.ProjectStateAfterBuild.Properties.ShouldContain(p => p.Name == "NewProperty"); 526result.ProjectStateAfterBuild.Properties.ShouldContain(p => p.Name == "RequestedProperty");
Definition\Toolset_Tests.cs (6)
122foreach (string key in t.Properties.Values.Select(p => p.Name)) 124Assert.Equal(t.Properties[key].Name, t2.Properties[key].Name); 140foreach (string subToolsetPropertyKey in subToolset1.Properties.Values.Select(p => p.Name)) 142Assert.Equal(subToolset1.Properties[subToolsetPropertyKey].Name, subToolset2.Properties[subToolsetPropertyKey].Name);
Evaluation\ToolsetConfigurationNet5_Tests.cs (2)
37toolsetProperties[properties.Value.Name] = properties.Value.EvaluatedValue; 64toolsetProperties[properties.Value.Name] = properties.Value.EvaluatedValue;
Instance\ProjectPropertyInstance_Internal_Tests.cs (7)
31Assert.Equal("p", clone.Name); 47Assert.Equal(property.Name, deserializedProperty.Name); 64Assert.Equal(property.Name, deserializedProperty.Name); 83Assert.Equal(property.Name, deserializedProperty.Name);
TestComparers\TaskRegistryComparers.cs (2)
137Assert.Equal(xp.Value.Name, yp.Value.Name);