Implemented interface member:
property
EvaluatedValue
Microsoft.Build.Evaluation.IProperty.EvaluatedValue
15 writes to EvaluatedValue
Microsoft.Build.Engine.OM.UnitTests (15)
Instance\ProjectInstance_Tests.cs (11)
814Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.Properties).EvaluatedValue = "v2"; }); 825Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.GetProperty("p1").EvaluatedValue = "v2"; }); 891Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.GetProperty("g").EvaluatedValue = "v2"; }); 895instance.GetProperty(NativeMethodsShared.IsWindows ? "username" : "USER").EvaluatedValue = 898Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.Properties).EvaluatedValue = "v2"; }); 916Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.GetProperty("g").EvaluatedValue = "v2"; }); 920instance.GetProperty(NativeMethodsShared.IsWindows ? "username" : "USER").EvaluatedValue = 923Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.Properties).EvaluatedValue = "v2"; }); 938Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.GetProperty("g").EvaluatedValue = "v2"; }); 942instance.GetProperty(NativeMethodsShared.IsWindows ? "username" : "USER").EvaluatedValue = 945Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.Properties).EvaluatedValue = "v2"; });
Instance\ProjectPropertyInstance_Tests.cs (4)
37property.EvaluatedValue = "v2"; 48property.EvaluatedValue = "v!2"; 59property.EvaluatedValue = String.Empty; 72property.EvaluatedValue = null;
92 references to EvaluatedValue
Microsoft.Build (30)
BackEnd\BuildManager\BuildManager.cs (1)
1286submission.BuildRequestData.ProjectInstance!.GetProperty(ReservedPropertyNames.projectDirectory)!.EvaluatedValue,
BackEnd\Components\Logging\ProjectLoggingContext.cs (3)
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 (4)
332globalProperties.Add(property.Name, property.EvaluatedValue); 426string? designTimeBuild = buildRequestConfiguration.GlobalProperties[DesignTimeProperties.DesignTimeBuild]?.EvaluatedValue; 427string? buildingProject = buildRequestConfiguration.GlobalProperties[DesignTimeProperties.BuildingProject]?.EvaluatedValue; 631globalProperties.Add(property.Name, property.EvaluatedValue);
BackEnd\Components\RequestBuilder\FullTracking.cs (1)
100tlogRelativeDirectoryValue = tlogRelativeDirectoryProperty.EvaluatedValue;
BackEnd\Components\RequestBuilder\Lookup.cs (1)
221errorMessages.Add(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("PropertyOutputOverridden", propertyName, EscapingUtilities.UnescapeAll(propertyValue), property.EvaluatedValue));
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\TaskExecutionHost\TaskExecutionHost.cs (2)
1228if (string.Equals(lookup.GetProperty(key)?.EvaluatedValue, "true", StringComparison.OrdinalIgnoreCase)) 1232else if (string.Equals(lookup.GetProperty(metadataKey)?.EvaluatedValue, "true", StringComparison.OrdinalIgnoreCase))
Construction\Solution\SolutionProjectGenerator.cs (2)
753_selectedSolutionConfiguration = String.Format(CultureInfo.InvariantCulture, "{0}|{1}", traversalInstance.GetProperty("Configuration").EvaluatedValue, traversalInstance.GetProperty("Platform").EvaluatedValue);
Definition\Toolset.cs (3)
758return subToolsetProperty.EvaluatedValue; 790return visualStudioVersionProperty.EvaluatedValue; 801return visualStudioVersionProperty.EvaluatedValue;
Definition\ToolsetReader.cs (1)
423initialPropertiesClone.GetProperty(p)?.EvaluatedValue);
Evaluation\Evaluator.cs (4)
261_isRunningInVisualStudio = String.Equals("true", _data.GlobalPropertiesDictionary.GetProperty("BuildingInsideVisualStudio")?.EvaluatedValue, StringComparison.OrdinalIgnoreCase); 265_interactive = interactive || String.Equals("true", _data.GlobalPropertiesDictionary.GetProperty("NuGetInteractive")?.EvaluatedValue, StringComparison.OrdinalIgnoreCase); 797int hash = (configurationData != null) ? configurationData.EvaluatedValue.GetHashCode() : 0; 804propertyDump += entry.Name + "=" + entry.EvaluatedValue + "\n";
Instance\ProjectInstance.cs (4)
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))
Instance\ProjectPropertyInstance.cs (1)
309property.Value = EvaluatedValue;
Utilities\Utilities.cs (1)
538localAppData = localAppDataProp.EvaluatedValue;
Microsoft.Build.Engine.OM.UnitTests (5)
Definition\ProjectCollection_Tests.cs (1)
1498Assert.Equal(ProjectCollection.Unescape(propertyValue), property.EvaluatedValue);
Instance\ProjectPropertyInstance_Tests.cs (4)
27Assert.Equal("v1", property.EvaluatedValue); 38Assert.Equal("v2", property.EvaluatedValue); 49Assert.Equal("v!2", property.EvaluatedValue); 60Assert.Equal(String.Empty, property.EvaluatedValue);
Microsoft.Build.Engine.UnitTests (55)
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 (15)
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); 1204Assert.Equal("n2", lookup.GetProperty("p1").EvaluatedValue); 1281Assert.Equal("v0", p.GetProperty("global").EvaluatedValue); 1287Assert.Equal("v2", p.GetProperty("global").EvaluatedValue); 1291Assert.Equal("v0", p.GetProperty("global").EvaluatedValue); 1315string value = p.GetProperty("p").EvaluatedValue; 1320value = p.GetProperty("p").EvaluatedValue; 2189string p1 = lookup.GetProperty("p1").EvaluatedValue;
BackEnd\Lookup_Tests.cs (8)
1255Assert.Equal("v2", lookup.GetProperty("p1").EvaluatedValue); 1256Assert.Equal("v1", group["p1"].EvaluatedValue); 1264Assert.Equal("v3", lookup.GetProperty("p1").EvaluatedValue); 1265Assert.Equal("v1", group["p1"].EvaluatedValue); 1272Assert.Equal("v4", lookup.GetProperty("p1").EvaluatedValue); 1276Assert.Equal("v4", lookup.GetProperty("p1").EvaluatedValue); 1283Assert.Equal("v4", lookup.GetProperty("p1").EvaluatedValue); 1284Assert.Equal("v4", group["p1"].EvaluatedValue);
BackEnd\TaskExecutionHost_Tests.cs (1)
1357Assert.Equal(value, _bucket.Lookup.GetProperty("output").EvaluatedValue);
Collections\OMcollections_tests.cs (2)
48Assert.Equal("v1", properties["p1"].EvaluatedValue); 49Assert.Equal("v3", properties["p2"].EvaluatedValue);
Definition\Toolset_Tests.cs (7)
125Assert.Equal(t.Properties[key].EvaluatedValue, t2.Properties[key].EvaluatedValue); 143Assert.Equal(subToolset1.Properties[subToolsetPropertyKey].EvaluatedValue, subToolset2.Properties[subToolsetPropertyKey].EvaluatedValue); 475Assert.Equal("a1", t.GetProperty("a", "v11.0").EvaluatedValue); // property in base toolset 476Assert.Equal("c2", t.GetProperty("c", "v11.0").EvaluatedValue); // property in sub-toolset 477Assert.Equal("b2", t.GetProperty("b", "v11.0").EvaluatedValue); // property in sub-toolset that overrides base toolset
Evaluation\ToolsetConfigurationNet5_Tests.cs (2)
37toolsetProperties[properties.Value.Name] = properties.Value.EvaluatedValue; 64toolsetProperties[properties.Value.Name] = properties.Value.EvaluatedValue;
Instance\ProjectInstance_Internal_Tests.cs (5)
270p.GlobalPropertiesDictionary["g1"].EvaluatedValue.ShouldBe("v1"); 271p.GlobalPropertiesDictionary["g2"].EvaluatedValue.ShouldBe("v2"); 504second.GlobalPropertiesDictionary["g1"].EvaluatedValue.ShouldBe("v1"); 505second.GlobalPropertiesDictionary["g2"].EvaluatedValue.ShouldBe("v2"); 1037template.Properties.ToDictionary(p => p.Key, p => p.Value.EvaluatedValue),
Instance\ProjectPropertyInstance_Internal_Tests.cs (7)
32Assert.Equal("v1", clone.EvaluatedValue); 48Assert.Equal(property.EvaluatedValue, deserializedProperty.EvaluatedValue); 65Assert.Equal(property.EvaluatedValue, deserializedProperty.EvaluatedValue); 84Assert.Equal(property.EvaluatedValue, deserializedProperty.EvaluatedValue);
TestComparers\TaskRegistryComparers.cs (2)
138Assert.Equal(xp.Value.EvaluatedValue, yp.Value.EvaluatedValue);
Microsoft.Build.Utilities.UnitTests (1)
ToolLocationHelper_Tests.cs (1)
715string tv12path = Path.Combine(Path.GetFullPath(toolsPath32.EvaluatedValue), "msbuild.exe");
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\Extensions.cs (1)
76=> executedProject.GetProperty(propertyName)?.EvaluatedValue;