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)
813Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.Properties).EvaluatedValue = "v2"; }); 824Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.GetProperty("p1").EvaluatedValue = "v2"; }); 890Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.GetProperty("g").EvaluatedValue = "v2"; }); 894instance.GetProperty(NativeMethodsShared.IsWindows ? "username" : "USER").EvaluatedValue = 897Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.Properties).EvaluatedValue = "v2"; }); 915Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.GetProperty("g").EvaluatedValue = "v2"; }); 919instance.GetProperty(NativeMethodsShared.IsWindows ? "username" : "USER").EvaluatedValue = 922Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.Properties).EvaluatedValue = "v2"; }); 937Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.GetProperty("g").EvaluatedValue = "v2"; }); 941instance.GetProperty(NativeMethodsShared.IsWindows ? "username" : "USER").EvaluatedValue = 944Helpers.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;
94 references to EvaluatedValue
Microsoft.Build (32)
BackEnd\BuildManager\BuildManager.cs (1)
1323submission.BuildRequestData.ProjectInstance!.GetProperty(ReservedPropertyNames.projectDirectory)!.EvaluatedValue,
BackEnd\Components\Logging\ProjectLoggingContext.cs (3)
213properties = projectProperties.GetCopyOnReadEnumerable(property => new DictionaryEntry(property.Name, property.EvaluatedValue)); 217properties = projectProperties.Filter(p => p is not EnvironmentDerivedProjectPropertyInstance || EnvironmentUtilities.IsWellKnownEnvironmentDerivedProperty(p.Name), p => new DictionaryEntry(p.Name, p.EvaluatedValue)); 240properties = projectPropertiesToSerialize.Select((ProjectPropertyInstance property) => new DictionaryEntry(property.Name, property.EvaluatedValue));
BackEnd\Components\ProjectCache\ProjectCacheService.cs (4)
333globalProperties.Add(property.Name, property.EvaluatedValue); 427string? designTimeBuild = buildRequestConfiguration.GlobalProperties[DesignTimeProperties.DesignTimeBuild]?.EvaluatedValue; 428string? buildingProject = buildRequestConfiguration.GlobalProperties[DesignTimeProperties.BuildingProject]?.EvaluatedValue; 632globalProperties.Add(property.Name, property.EvaluatedValue);
BackEnd\Components\RequestBuilder\FullTracking.cs (1)
100tlogRelativeDirectoryValue = tlogRelativeDirectoryProperty.EvaluatedValue;
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
96Project.GetProperty(property.Name)?.EvaluatedValue ?? null,
BackEnd\Components\RequestBuilder\Lookup.cs (1)
220errorMessages.Add(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("PropertyOutputOverridden", propertyName, EscapingUtilities.UnescapeAll(propertyValue), property.EvaluatedValue));
BackEnd\Components\Scheduler\Scheduler.cs (2)
2043return string.Join("; ", configuration.GlobalProperties.Select<ProjectPropertyInstance, string>(p => $"{p.Name}={p.EvaluatedValue}")); 2719file.WriteLine("{0} = \"{1}\"", property.Name, property.EvaluatedValue);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
1231if (string.Equals(lookup.GetProperty(key)?.EvaluatedValue, "true", StringComparison.OrdinalIgnoreCase)) 1238if (string.Equals(lookup.GetProperty(metadataKey)?.EvaluatedValue, "true", StringComparison.OrdinalIgnoreCase)) 1597_projectInstance.GetProperty(outputTargetName)?.EvaluatedValue ?? null,
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)
768return subToolsetProperty.EvaluatedValue; 800return visualStudioVersionProperty.EvaluatedValue; 811return visualStudioVersionProperty.EvaluatedValue;
Definition\ToolsetReader.cs (1)
423initialPropertiesClone.GetProperty(p)?.EvaluatedValue);
Evaluation\Evaluator.cs (4)
267_isRunningInVisualStudio = String.Equals("true", _data.GlobalPropertiesDictionary.GetProperty("BuildingInsideVisualStudio")?.EvaluatedValue, StringComparison.OrdinalIgnoreCase); 271_interactive = interactive || String.Equals("true", _data.GlobalPropertiesDictionary.GetProperty("NuGetInteractive")?.EvaluatedValue, StringComparison.OrdinalIgnoreCase); 805int hash = (configurationData != null) ? configurationData.EvaluatedValue.GetHashCode() : 0; 812propertyDump += $"{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)
542localAppData = 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)
44Assert.Equal("v1", properties["p1"].EvaluatedValue); 45Assert.Equal("v2", properties["p2"].EvaluatedValue); 64Assert.Equal("v1", properties["p1"].EvaluatedValue); 136Assert.Equal("", properties["p1"].EvaluatedValue); 977Assert.Equal("v0", properties["p0"].EvaluatedValue); 978Assert.Equal("v0", properties["p1"].EvaluatedValue); 1152Assert.Equal("v2", properties["p1"].EvaluatedValue); 1153Assert.Equal("#v1#", properties["p2"].EvaluatedValue); 1203Assert.Equal("n2", lookup.GetProperty("p1").EvaluatedValue); 1280Assert.Equal("v0", p.GetProperty("global").EvaluatedValue); 1286Assert.Equal("v2", p.GetProperty("global").EvaluatedValue); 1290Assert.Equal("v0", p.GetProperty("global").EvaluatedValue); 1314string value = p.GetProperty("p").EvaluatedValue; 1319value = p.GetProperty("p").EvaluatedValue; 2188string p1 = lookup.GetProperty("p1").EvaluatedValue;
BackEnd\Lookup_Tests.cs (8)
1254Assert.Equal("v2", lookup.GetProperty("p1").EvaluatedValue); 1255Assert.Equal("v1", group["p1"].EvaluatedValue); 1263Assert.Equal("v3", lookup.GetProperty("p1").EvaluatedValue); 1264Assert.Equal("v1", group["p1"].EvaluatedValue); 1271Assert.Equal("v4", lookup.GetProperty("p1").EvaluatedValue); 1275Assert.Equal("v4", lookup.GetProperty("p1").EvaluatedValue); 1282Assert.Equal("v4", lookup.GetProperty("p1").EvaluatedValue); 1283Assert.Equal("v4", group["p1"].EvaluatedValue);
BackEnd\TaskExecutionHost_Tests.cs (1)
1356Assert.Equal(value, _bucket.Lookup.GetProperty("output").EvaluatedValue);
Collections\OMcollections_tests.cs (2)
47Assert.Equal("v1", properties["p1"].EvaluatedValue); 48Assert.Equal("v3", properties["p2"].EvaluatedValue);
Definition\Toolset_Tests.cs (7)
123Assert.Equal(t.Properties[key].EvaluatedValue, t2.Properties[key].EvaluatedValue); 141Assert.Equal(subToolset1.Properties[subToolsetPropertyKey].EvaluatedValue, subToolset2.Properties[subToolsetPropertyKey].EvaluatedValue); 473Assert.Equal("a1", t.GetProperty("a", "v11.0").EvaluatedValue); // property in base toolset 474Assert.Equal("c2", t.GetProperty("c", "v11.0").EvaluatedValue); // property in sub-toolset 475Assert.Equal("b2", t.GetProperty("b", "v11.0").EvaluatedValue); // property in sub-toolset that overrides base toolset
Evaluation\ToolsetConfigurationNet5_Tests.cs (2)
36toolsetProperties[properties.Value.Name] = properties.Value.EvaluatedValue; 63toolsetProperties[properties.Value.Name] = properties.Value.EvaluatedValue;
Instance\ProjectInstance_Internal_Tests.cs (5)
269p.GlobalPropertiesDictionary["g1"].EvaluatedValue.ShouldBe("v1"); 270p.GlobalPropertiesDictionary["g2"].EvaluatedValue.ShouldBe("v2"); 503second.GlobalPropertiesDictionary["g1"].EvaluatedValue.ShouldBe("v1"); 504second.GlobalPropertiesDictionary["g2"].EvaluatedValue.ShouldBe("v2"); 1036template.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)
714string 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;