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;
93 references to EvaluatedValue
Microsoft.Build (32)
BackEnd\BuildManager\BuildManager.cs (1)
1310submission.BuildRequestData.ProjectInstance.GetProperty(ReservedPropertyNames.projectDirectory).EvaluatedValue,
BackEnd\Components\Logging\ProjectLoggingContext.cs (3)
108properties = projectProperties.GetCopyOnReadEnumerable(property => new DictionaryEntry(property.Name, property.EvaluatedValue)); 112properties = projectProperties.Filter(p => p is not EnvironmentDerivedProjectPropertyInstance || EnvironmentUtilities.IsWellKnownEnvironmentDerivedProperty(p.Name), p => new DictionaryEntry(p.Name, p.EvaluatedValue)); 135properties = 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; 628globalProperties.Add(property.Name, property.EvaluatedValue);
BackEnd\Components\RequestBuilder\Lookup.cs (1)
220errorMessages.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}")); 2709file.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)
749_selectedSolutionConfiguration = String.Format(CultureInfo.InvariantCulture, "{0}|{1}", traversalInstance.GetProperty("Configuration").EvaluatedValue, traversalInstance.GetProperty("Platform").EvaluatedValue);
Definition\Toolset.cs (3)
759return subToolsetProperty.EvaluatedValue; 791return visualStudioVersionProperty.EvaluatedValue; 802return visualStudioVersionProperty.EvaluatedValue;
Definition\ToolsetReader.cs (3)
424string frameworksPathPrefix32 = existingRootOrNull(initialPropertiesClone.GetProperty("MSBuildFrameworkToolsPath32")?.EvaluatedValue?.Trim()); 427string frameworksPathPrefix64 = existingRootOrNull(initialPropertiesClone.GetProperty("MSBuildFrameworkToolsPath64")?.EvaluatedValue?.Trim()); 430string frameworksPathPrefixArm64 = existingRootOrNull(initialPropertiesClone.GetProperty("MSBuildFrameworkToolsPathArm64")?.EvaluatedValue?.Trim());
Evaluation\Evaluator.cs (4)
266_isRunningInVisualStudio = String.Equals("true", _data.GlobalPropertiesDictionary.GetProperty("BuildingInsideVisualStudio")?.EvaluatedValue, StringComparison.OrdinalIgnoreCase); 270_interactive = interactive || String.Equals("true", _data.GlobalPropertiesDictionary.GetProperty("NuGetInteractive")?.EvaluatedValue, StringComparison.OrdinalIgnoreCase); 782int hash = (configurationData != null) ? configurationData.EvaluatedValue.GetHashCode() : 0; 789propertyDump += entry.Name + "=" + entry.EvaluatedValue + "\n";
Instance\ProjectInstance.cs (5)
1768string value = (property == null) ? String.Empty : property.EvaluatedValue; 2162if (!_globalProperties.Contains(property.Name) || !String.Equals(_globalProperties[property.Name].EvaluatedValue, property.EvaluatedValue, StringComparison.OrdinalIgnoreCase)) 2164if (!_environmentVariableProperties.Contains(property.Name) || !String.Equals(_environmentVariableProperties[property.Name].EvaluatedValue, property.EvaluatedValue, StringComparison.OrdinalIgnoreCase))
Instance\ProjectPropertyInstance.cs (1)
282property.Value = EvaluatedValue;
Utilities\Utilities.cs (1)
535localAppData = localAppDataProp.EvaluatedValue;
Microsoft.Build.Engine.OM.UnitTests (5)
Definition\ProjectCollection_Tests.cs (1)
1493Assert.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)
369Assert.Equal("1", instance.PropertiesToBuildWith["One"].EvaluatedValue); 370Assert.Equal("2", instance.PropertiesToBuildWith["Two"].EvaluatedValue); 371Assert.Equal("3", instance.PropertiesToBuildWith["Three"].EvaluatedValue); 397Assert.Equal("1", instance.PropertiesToBuildWith["One"].EvaluatedValue); 398Assert.Equal("2", instance.PropertiesToBuildWith["Two"].EvaluatedValue); 399Assert.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); 945Assert.Equal("v0", properties["p0"].EvaluatedValue); 946Assert.Equal("v0", properties["p1"].EvaluatedValue); 1118Assert.Equal("v2", properties["p1"].EvaluatedValue); 1119Assert.Equal("#v1#", properties["p2"].EvaluatedValue); 1167Assert.Equal("n2", lookup.GetProperty("p1").EvaluatedValue); 1241Assert.Equal("v0", p.GetProperty("global").EvaluatedValue); 1247Assert.Equal("v2", p.GetProperty("global").EvaluatedValue); 1251Assert.Equal("v0", p.GetProperty("global").EvaluatedValue); 1274string value = p.GetProperty("p").EvaluatedValue; 1279value = p.GetProperty("p").EvaluatedValue; 2138string 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)
1356Assert.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)
134Assert.Equal(t.Properties[key].EvaluatedValue, t2.Properties[key].EvaluatedValue); 152Assert.Equal(subToolset1.Properties[subToolsetPropertyKey].EvaluatedValue, subToolset2.Properties[subToolsetPropertyKey].EvaluatedValue); 484Assert.Equal("a1", t.GetProperty("a", "v11.0").EvaluatedValue); // property in base toolset 485Assert.Equal("c2", t.GetProperty("c", "v11.0").EvaluatedValue); // property in sub-toolset 486Assert.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)
267p.GlobalPropertiesDictionary["g1"].EvaluatedValue.ShouldBe("v1"); 268p.GlobalPropertiesDictionary["g2"].EvaluatedValue.ShouldBe("v2"); 496second.GlobalPropertiesDictionary["g1"].EvaluatedValue.ShouldBe("v1"); 497second.GlobalPropertiesDictionary["g2"].EvaluatedValue.ShouldBe("v2"); 1025template.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");