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