115 references to GetPropertyValue
Microsoft.Build (27)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
586_loggingService.LogComment(buildEventContext, MessageImportance.High, "ProjectCacheHitWithOutputs", buildRequest.ProjectInstance.GetPropertyValue(ReservedPropertyNames.projectName));
BackEnd\Components\RequestBuilder\RequestBuilder.cs (6)
1369if (String.Equals(project.GetPropertyValue(MSBuildConstants.TreatWarningsAsErrors)?.Trim(), "true", StringComparison.OrdinalIgnoreCase)) 1376ISet<string> warningsAsErrors = ParseWarningCodes(project.GetPropertyValue(MSBuildConstants.WarningsAsErrors)); 1384ISet<string> warningsNotAsErrors = ParseWarningCodes(project.GetPropertyValue(MSBuildConstants.WarningsNotAsErrors)); 1391ISet<string> warningsAsMessages = ParseWarningCodes(project.GetPropertyValue(MSBuildConstants.WarningsAsMessages)); 1406FileClassifier.Shared.RegisterImmutableDirectory(project.GetPropertyValue("FrameworkPathOverride")?.Trim()); 1408FileClassifier.Shared.RegisterImmutableDirectory(project.GetPropertyValue("NetCoreRoot")?.Trim());
Construction\Solution\SolutionProjectGenerator.cs (2)
1086string directProjectToolsVersion = traversalProject.GetPropertyValue("ProjectToolsVersion"); 2064properties[property.Item1] = EscapingUtilities.Escape(traversalProject.GetPropertyValue(property.Item1));
Graph\ProjectInterpretation.cs (18)
106string solutionConfigurationXml = requesterInstance.GetPropertyValue(SolutionProjectGenerator.CurrentSolutionConfigurationContents); 126bool enableDynamicPlatformResolution = ConversionUtilities.ValidBooleanTrue(requesterInstance.GetPropertyValue(EnableDynamicPlatformResolutionPropertyName)); 164bool shouldUnsetParentConfigurationAndPlatform = !ConversionUtilities.ValidBooleanFalse(requesterInstance.GetPropertyValue(ShouldUnsetParentConfigurationAndPlatformPropertyName)); 181string requesterPlatform = requesterInstance.GetPropertyValue("Platform"); 182string requesterPlatformLookupTable = requesterInstance.GetPropertyValue("PlatformLookupTable"); 191var selectedPlatform = PlatformNegotiation.GetNearestPlatform(overridePlatformNegotiationMetadataValue, projectInstance.GetPropertyValue(PlatformMetadataName), projectInstance.GetPropertyValue(PlatformsMetadataName), projectInstance.GetPropertyValue(PlatformLookupTableMetadataName), requesterInstance.GetPropertyValue(PlatformLookupTableMetadataName), projectInstance.FullPath, requesterInstance.GetPropertyValue(PlatformMetadataName)); 217return project.GetPropertyValue(GetInnerBuildPropertyName(project)); 222return project.GetPropertyValue(PropertyNames.InnerBuildProperty); 227return project.GetPropertyValue(project.GetPropertyValue(PropertyNames.InnerBuildPropertyValues)); 562if (string.IsNullOrWhiteSpace(projectInstance.GetPropertyValue(AddTransitiveProjectReferencesInStaticGraphPropertyName)) && 563MSBuildStringIsTrue(projectInstance.GetPropertyValue("UsingMicrosoftNETSdk")) && 564MSBuildStringIsFalse(projectInstance.GetPropertyValue("DisableTransitiveProjectReferences"))) 570projectInstance.GetPropertyValue(AddTransitiveProjectReferencesInStaticGraphPropertyName));
Microsoft.Build.Engine.OM.UnitTests (10)
Definition\DefinitionEditing_Tests.cs (3)
1483Assert.Equal("v1", project.CreateProjectInstance().GetPropertyValue("p1")); 1508Assert.Equal("v^1", project.CreateProjectInstance().GetPropertyValue("p1")); 1828Assert.Equal(String.Empty, instance.GetPropertyValue("p1"));
Instance\ProjectInstance_Tests.cs (7)
43Assert.True(i.GetPropertyValue("username") != null); 54Assert.Equal("v1", p.GetPropertyValue("p1")); 55Assert.Equal("v2X", p.GetPropertyValue("p2")); 209Assert.Equal("p2", instance.GetPropertyValue("p")); 214Assert.Equal("", instance.GetPropertyValue("p")); 242Assert.Equal("v1b", first.GetPropertyValue("p1")); 243Assert.Equal("v1", second.GetPropertyValue("p1"));
Microsoft.Build.Engine.UnitTests (76)
BackEnd\BuildManager_Tests.cs (5)
525result.ProjectStateAfterBuild.GetPropertyValue("NewProperty").ShouldBe("FunValue"); 528result.ProjectStateAfterBuild.GetPropertyValue("RequestedProperty").ShouldBe("IsRequested"); 1863Assert.Equal("bar", instance.GetPropertyValue("Foo")); 1889Assert.Equal("bar", instance.GetPropertyValue("Foo")); 1921Assert.Equal("bar", instance.GetPropertyValue("Foo"));
BackEnd\ResultsCache_Tests.cs (4)
333Assert.Equal("Value1", cachedResponseWithSubsetFlag1.Results.ProjectStateAfterBuild.GetPropertyValue("property1")); 334Assert.Equal("Value2", cachedResponseWithSubsetFlag1.Results.ProjectStateAfterBuild.GetPropertyValue("property2")); 338Assert.Equal("Value1", cachedResponseWithSubsetFlag2.Results.ProjectStateAfterBuild.GetPropertyValue("property1")); 339Assert.Equal("", cachedResponseWithSubsetFlag2.Results.ProjectStateAfterBuild.GetPropertyValue("property2"));
BackEnd\TaskHostFactory_Tests.cs (33)
47string processId = projectInstance.GetPropertyValue("PID"); 196projectInstance.GetPropertyValue("BoolOutput").ShouldBe(boolParam); 197projectInstance.GetPropertyValue("BoolArrayOutput").ShouldBe(boolArrayParam); 198projectInstance.GetPropertyValue("ByteOutput").ShouldBe(byteParam); 199projectInstance.GetPropertyValue("ByteArrayOutput").ShouldBe(byteArrayParam); 200projectInstance.GetPropertyValue("SByteOutput").ShouldBe(sbyteParam); 201projectInstance.GetPropertyValue("SByteArrayOutput").ShouldBe(sbyteArrayParam); 202projectInstance.GetPropertyValue("DoubleOutput").ShouldBe(doubleParam); 203projectInstance.GetPropertyValue("DoubleArrayOutput").ShouldBe(doubleArrayParam); 204projectInstance.GetPropertyValue("FloatOutput").ShouldBe(floatParam); 205projectInstance.GetPropertyValue("FloatArrayOutput").ShouldBe(floatArrayParam); 206projectInstance.GetPropertyValue("ShortOutput").ShouldBe(shortParam); 207projectInstance.GetPropertyValue("ShortArrayOutput").ShouldBe(shortArrayParam); 208projectInstance.GetPropertyValue("UShortOutput").ShouldBe(ushortParam); 209projectInstance.GetPropertyValue("UShortArrayOutput").ShouldBe(ushortArrayParam); 210projectInstance.GetPropertyValue("IntOutput").ShouldBe(intParam); 211projectInstance.GetPropertyValue("IntArrayOutput").ShouldBe(intArrayParam); 212projectInstance.GetPropertyValue("UIntOutput").ShouldBe(uintParam); 213projectInstance.GetPropertyValue("UIntArrayOutput").ShouldBe(uintArrayParam); 214projectInstance.GetPropertyValue("LongOutput").ShouldBe(longParam); 215projectInstance.GetPropertyValue("LongArrayOutput").ShouldBe(longArrayParam); 216projectInstance.GetPropertyValue("ULongOutput").ShouldBe(ulongParam); 217projectInstance.GetPropertyValue("ULongArrayOutput").ShouldBe(ulongArrayParam); 218projectInstance.GetPropertyValue("DecimalOutput").ShouldBe(decimalParam); 219projectInstance.GetPropertyValue("DecimalArrayOutput").ShouldBe(decimalArrayParam); 220projectInstance.GetPropertyValue("CharOutput").ShouldBe(charParam); 221projectInstance.GetPropertyValue("CharArrayOutput").ShouldBe(charArrayParam); 222projectInstance.GetPropertyValue("StringOutput").ShouldBe(stringParam); 223projectInstance.GetPropertyValue("StringArrayOutput").ShouldBe(stringArrayParam); 224projectInstance.GetPropertyValue("DateTimeOutput").ShouldBe(dateTimeParam); 225projectInstance.GetPropertyValue("DateTimeArrayOutput").ShouldBe(dateTimeArrayParam); 226projectInstance.GetPropertyValue("CustomStructOutput").ShouldBe(TaskBuilderTestTask.s_customStruct.ToString(CultureInfo.InvariantCulture)); 227projectInstance.GetPropertyValue("EnumOutput").ShouldBe(TargetBuiltReason.BeforeTargets.ToString());
Construction\SolutionProjectGenerator_Tests.cs (17)
434Assert.Equal(t.DefaultSubToolsetVersion, instances[0].GetPropertyValue("VisualStudioVersion")); 438Assert.Equal(String.Empty, instances[0].GetPropertyValue("VisualStudioVersion")); 474Assert.Equal("11.0", instances[0].GetPropertyValue("VisualStudioVersion")); 505Assert.Equal("ABC", instances[0].GetPropertyValue("VisualStudioVersion")); 703Assert.Equal("11.0", instances[0].GetPropertyValue("VisualStudioVersion")); 1329Assert.Equal(toolsVersionParameter, instances[0].GetPropertyValue("ProjectToolsVersion")); 1566Assert.Equal("Debug", instances[0].GetPropertyValue("Configuration")); 1569Assert.Equal("Mixed Platforms", instances[0].GetPropertyValue("Platform")); 1596Assert.Equal("Release", instances[0].GetPropertyValue("Configuration")); 1599Assert.Equal("Any CPU", instances[0].GetPropertyValue("Platform")); 1621Assert.Equal("Debug", msbuildProject.GetPropertyValue("AspNetConfiguration")); 1625Assert.Equal("Release", msbuildProject.GetPropertyValue("AspNetConfiguration")); 1648Assert.Equal("v4.0", msbuildProject.GetPropertyValue("TargetFrameworkVersion")); 1658Assert.Equal("v3.5", msbuildProject.GetPropertyValue("TargetFrameworkVersion")); 1662Assert.Equal("v2.0", msbuildProject.GetPropertyValue("TargetFrameworkVersion")); 1668Assert.Equal("userdefined", msbuildProject.GetPropertyValue("TargetFrameworkVersion")); 2629Assert.Equal(enable ? expectedPropertyValue : string.Empty, projectInstance.GetPropertyValue("PropertyA"));
Evaluation\Expander_Tests.cs (2)
4938projectInstance.GetPropertyValue("_value").ShouldBe("-1"); 4939projectInstance.GetPropertyValue("_otherValue").ShouldBe("test-value");
Graph\GetCompatiblePlatformGraph_Tests.cs (4)
351GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.GetPropertyValue("Platform").ShouldBe(GetFirstNodeWithProjectNumber(graph, 1).ProjectInstance.GetPropertyValue("Platform")); 447GetFirstNodeWithProjectNumber(graphFromSolution, 2).ProjectInstance.GetPropertyValue("Platform").ShouldBe("AnyCPU", "Project2 should have followed the sln config to AnyCPU"); 448GetFirstNodeWithProjectNumber(graphFromSolution, 3).ProjectInstance.GetPropertyValue("Platform").ShouldBe("x64", "Project3 isn't in the solution so it should have negotiated to x64 to match Project1");
Graph\GraphTestingUtilities.cs (1)
118var innerBuildPropertyValue = innerBuild.ProjectInstance.GetPropertyValue(InnerBuildPropertyName);
Graph\ProjectGraph_Tests.cs (1)
2143var referencedInnerBuild = GetNodesWithProjectNumber(graph, 1).First(n => n.ProjectInstance.GetPropertyValue(InnerBuildPropertyName) == "a");
Instance\ProjectInstance_Internal_Tests.cs (7)
326p.GetPropertyValue("VisualStudioVersion").ShouldBe(MSBuildConstants.CurrentVisualStudioVersion); 330p.GetPropertyValue("VisualStudioVersion").ShouldBe(p.Toolset.DefaultSubToolsetVersion); 356p.GetPropertyValue("VisualStudioVersion").ShouldBe("ABCD"); 383p.GetPropertyValue("VisualStudioVersion").ShouldBe("ABCDE"); 422p.GetPropertyValue("VisualStudioVersion").ShouldBe("ABCDEF"); 894projectInstance.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase); 922projectInstance.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase);
ProjectCache\ProjectCacheTests.cs (2)
639var buildProjectInSolutionValue = node.ProjectInstance.GetPropertyValue("BuildProjectInSolution"); 644var projectDependencyValue = node.ProjectInstance.GetPropertyValue("ProjectDependency");
MSBuild (2)
XMake.cs (2)
1113outputStream.WriteLine(builtProject.GetPropertyValue(getProperty[0])); 1118jsonOutputFormatter.AddPropertiesInJsonFormat(getProperty, property => builtProject.GetPropertyValue(property));