131 references to GetPropertyValue
Microsoft.Build (8)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
590_loggingService.LogComment(buildEventContext, MessageImportance.High, "ProjectCacheHitWithOutputs", buildRequest.ProjectInstance!.GetPropertyValue(ReservedPropertyNames.projectName));
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1429FileClassifier.Shared.RegisterKnownImmutableLocations(project.GetPropertyValue);
Construction\Solution\SolutionProjectGenerator.cs (2)
1090string directProjectToolsVersion = traversalProject.GetPropertyValue("ProjectToolsVersion"); 2068properties[property.Item1] = EscapingUtilities.Escape(traversalProject.GetPropertyValue(property.Item1));
Graph\ProjectInterpretation.cs (4)
213return project.GetPropertyValue(GetInnerBuildPropertyName(project)); 218return project.GetPropertyValue(PropertyNames.InnerBuildProperty); 223return project.GetPropertyValue(project.GetPropertyValue(PropertyNames.InnerBuildPropertyValues));
Microsoft.Build.Engine.OM.UnitTests (10)
Definition\DefinitionEditing_Tests.cs (3)
1487Assert.Equal("v1", project.CreateProjectInstance().GetPropertyValue("p1")); 1512Assert.Equal("v^1", project.CreateProjectInstance().GetPropertyValue("p1")); 1832Assert.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)
524result.ProjectStateAfterBuild.GetPropertyValue("NewProperty").ShouldBe("FunValue"); 527result.ProjectStateAfterBuild.GetPropertyValue("RequestedProperty").ShouldBe("IsRequested"); 1928Assert.Equal("bar", instance.GetPropertyValue("Foo")); 1954Assert.Equal("bar", instance.GetPropertyValue("Foo")); 1986Assert.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"); 176projectInstance.GetPropertyValue("BoolOutput").ShouldBe(boolParam); 177projectInstance.GetPropertyValue("BoolArrayOutput").ShouldBe(boolArrayParam); 178projectInstance.GetPropertyValue("ByteOutput").ShouldBe(byteParam); 179projectInstance.GetPropertyValue("ByteArrayOutput").ShouldBe(byteArrayParam); 180projectInstance.GetPropertyValue("SByteOutput").ShouldBe(sbyteParam); 181projectInstance.GetPropertyValue("SByteArrayOutput").ShouldBe(sbyteArrayParam); 182projectInstance.GetPropertyValue("DoubleOutput").ShouldBe(doubleParam); 183projectInstance.GetPropertyValue("DoubleArrayOutput").ShouldBe(doubleArrayParam); 184projectInstance.GetPropertyValue("FloatOutput").ShouldBe(floatParam); 185projectInstance.GetPropertyValue("FloatArrayOutput").ShouldBe(floatArrayParam); 186projectInstance.GetPropertyValue("ShortOutput").ShouldBe(shortParam); 187projectInstance.GetPropertyValue("ShortArrayOutput").ShouldBe(shortArrayParam); 188projectInstance.GetPropertyValue("UShortOutput").ShouldBe(ushortParam); 189projectInstance.GetPropertyValue("UShortArrayOutput").ShouldBe(ushortArrayParam); 190projectInstance.GetPropertyValue("IntOutput").ShouldBe(intParam); 191projectInstance.GetPropertyValue("IntArrayOutput").ShouldBe(intArrayParam); 192projectInstance.GetPropertyValue("UIntOutput").ShouldBe(uintParam); 193projectInstance.GetPropertyValue("UIntArrayOutput").ShouldBe(uintArrayParam); 194projectInstance.GetPropertyValue("LongOutput").ShouldBe(longParam); 195projectInstance.GetPropertyValue("LongArrayOutput").ShouldBe(longArrayParam); 196projectInstance.GetPropertyValue("ULongOutput").ShouldBe(ulongParam); 197projectInstance.GetPropertyValue("ULongArrayOutput").ShouldBe(ulongArrayParam); 198projectInstance.GetPropertyValue("DecimalOutput").ShouldBe(decimalParam); 199projectInstance.GetPropertyValue("DecimalArrayOutput").ShouldBe(decimalArrayParam); 200projectInstance.GetPropertyValue("CharOutput").ShouldBe(charParam); 201projectInstance.GetPropertyValue("CharArrayOutput").ShouldBe(charArrayParam); 202projectInstance.GetPropertyValue("StringOutput").ShouldBe(stringParam); 203projectInstance.GetPropertyValue("StringArrayOutput").ShouldBe(stringArrayParam); 204projectInstance.GetPropertyValue("DateTimeOutput").ShouldBe(dateTimeParam); 205projectInstance.GetPropertyValue("DateTimeArrayOutput").ShouldBe(dateTimeArrayParam); 206projectInstance.GetPropertyValue("CustomStructOutput").ShouldBe(TaskBuilderTestTask.s_customStruct.ToString(CultureInfo.InvariantCulture)); 207projectInstance.GetPropertyValue("EnumOutput").ShouldBe(TargetBuiltReason.BeforeTargets.ToString());
Construction\SolutionProjectGenerator_Tests.cs (17)
448Assert.Equal(t.DefaultSubToolsetVersion, instances[0].GetPropertyValue("VisualStudioVersion")); 452Assert.Equal(String.Empty, instances[0].GetPropertyValue("VisualStudioVersion")); 490Assert.Equal("11.0", instances[0].GetPropertyValue("VisualStudioVersion")); 523Assert.Equal("ABC", instances[0].GetPropertyValue("VisualStudioVersion")); 721Assert.Equal("11.0", instances[0].GetPropertyValue("VisualStudioVersion")); 1365Assert.Equal(toolsVersionParameter, instances[0].GetPropertyValue("ProjectToolsVersion")); 1610Assert.Equal("Debug", instances[0].GetPropertyValue("Configuration")); 1613Assert.Equal("Mixed Platforms", instances[0].GetPropertyValue("Platform")); 1642Assert.Equal("Release", instances[0].GetPropertyValue("Configuration")); 1645Assert.Equal("Any CPU", instances[0].GetPropertyValue("Platform")); 1669Assert.Equal("Debug", msbuildProject.GetPropertyValue("AspNetConfiguration")); 1673Assert.Equal("Release", msbuildProject.GetPropertyValue("AspNetConfiguration")); 1698Assert.Equal("v4.0", msbuildProject.GetPropertyValue("TargetFrameworkVersion")); 1708Assert.Equal("v3.5", msbuildProject.GetPropertyValue("TargetFrameworkVersion")); 1712Assert.Equal("v2.0", msbuildProject.GetPropertyValue("TargetFrameworkVersion")); 1718Assert.Equal("userdefined", msbuildProject.GetPropertyValue("TargetFrameworkVersion")); 2725Assert.Equal(enable ? expectedPropertyValue : string.Empty, projectInstance.GetPropertyValue("PropertyA"));
Evaluation\Expander_Tests.cs (2)
4994projectInstance.GetPropertyValue("_value").ShouldBe("-1"); 4995projectInstance.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)
330p.GetPropertyValue("VisualStudioVersion").ShouldBe(MSBuildConstants.CurrentVisualStudioVersion); 334p.GetPropertyValue("VisualStudioVersion").ShouldBe(p.Toolset.DefaultSubToolsetVersion); 361p.GetPropertyValue("VisualStudioVersion").ShouldBe("ABCD"); 389p.GetPropertyValue("VisualStudioVersion").ShouldBe("ABCDE"); 430p.GetPropertyValue("VisualStudioVersion").ShouldBe("ABCDEF"); 907projectInstance.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase); 935projectInstance.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");
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (35)
TargetTests.cs (35)
37var shouldRun = instance.GetPropertyValue("_GeneratedEditorConfigShouldRun"); 38var hasItems = instance.GetPropertyValue("_GeneratedEditorConfigHasItems"); 61var shouldRun = instance.GetPropertyValue("_GeneratedEditorConfigShouldRun"); 62var hasItems = instance.GetPropertyValue("_GeneratedEditorConfigHasItems"); 85var shouldRun = instance.GetPropertyValue("_GeneratedEditorConfigShouldRun"); 86var hasItems = instance.GetPropertyValue("_GeneratedEditorConfigHasItems"); 110var shouldRun = instance.GetPropertyValue("_GeneratedEditorConfigShouldRun"); 111var hasItems = instance.GetPropertyValue("_GeneratedEditorConfigHasItems"); 137var shouldRun = instance.GetPropertyValue("_GeneratedEditorConfigShouldRun"); 138var hasItems = instance.GetPropertyValue("_GeneratedEditorConfigHasItems"); 431var langVersion = instance.GetPropertyValue("LangVersion"); 432var maxLangVersion = instance.GetPropertyValue("_MaxSupportedLangVersion"); 460var langVersion = instance.GetPropertyValue("LangVersion"); 461var maxLangVersion = instance.GetPropertyValue("_MaxSupportedLangVersion"); 484var langVersion = instance.GetPropertyValue("LangVersion"); 485var maxLangVersion = instance.GetPropertyValue("_MaxSupportedLangVersion"); 486var publicMaxLangVersion = instance.GetPropertyValue("MaxSupportedLangVersion"); 511var langVersion = instance.GetPropertyValue("LangVersion"); 512var maxLangVersion = instance.GetPropertyValue("_MaxSupportedLangVersion"); 513var publicMaxLangVersion = instance.GetPropertyValue("MaxSupportedLangVersion"); 584var emit = instance.GetPropertyValue("EmitCompilerGeneratedFiles"); 585var dir = instance.GetPropertyValue("CompilerGeneratedFilesOutputPath"); 609var emit = instance.GetPropertyValue("EmitCompilerGeneratedFiles"); 610var dir = instance.GetPropertyValue("CompilerGeneratedFilesOutputPath"); 630var emit = instance.GetPropertyValue("EmitCompilerGeneratedFiles"); 631var dir = instance.GetPropertyValue("CompilerGeneratedFilesOutputPath"); 660var emit = instance.GetPropertyValue("EmitCompilerGeneratedFiles"); 661var dir = instance.GetPropertyValue("CompilerGeneratedFilesOutputPath"); 704var actualSkipAnalyzersValue = instance.GetPropertyValue("_SkipAnalyzers"); 763var actualImplicitlySkippedAnalyzersValue = instance.GetPropertyValue("_ImplicitlySkipAnalyzers"); 767var actualSkipAnalyzersValue = instance.GetPropertyValue("_SkipAnalyzers"); 771var actualFeaturesValue = instance.GetPropertyValue("Features"); 814var msbuildProjectFileName = instance.GetPropertyValue("MSBuildProjectFile"); 824var actualLastBuildWithSkipAnalyzers = instance.GetPropertyValue("_LastBuildWithSkipAnalyzers"); 911var compilerApiVersionString = instance.GetPropertyValue("CompilerApiVersion");
MSBuild (2)
XMake.cs (2)
1124outputStream.WriteLine(builtProject.GetPropertyValue(getProperty[0])); 1129jsonOutputFormatter.AddPropertiesInJsonFormat(getProperty, property => builtProject.GetPropertyValue(property));