138 references to GetPropertyValue
Microsoft.Build (8)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
686
_loggingService.LogComment(buildEventContext, MessageImportance.High, "ProjectCacheHitWithOutputs", buildRequest.ProjectInstance!.
GetPropertyValue
(ReservedPropertyNames.projectName));
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1500
FileClassifier.Shared.RegisterKnownImmutableLocations(project.
GetPropertyValue
);
Construction\Solution\SolutionProjectGenerator.cs (2)
1103
string directProjectToolsVersion = traversalProject.
GetPropertyValue
("ProjectToolsVersion");
2081
properties[property.Item1] = EscapingUtilities.Escape(traversalProject.
GetPropertyValue
(property.Item1));
Graph\ProjectInterpretation.cs (4)
213
return project.
GetPropertyValue
(GetInnerBuildPropertyName(project));
218
return project.
GetPropertyValue
(PropertyNames.InnerBuildProperty);
223
return project.
GetPropertyValue
(project.
GetPropertyValue
(PropertyNames.InnerBuildPropertyValues));
Microsoft.Build.Engine.OM.UnitTests (10)
Definition\DefinitionEditing_Tests.cs (3)
1485
Assert.Equal("v1", project.CreateProjectInstance().
GetPropertyValue
("p1"));
1510
Assert.Equal("v^1", project.CreateProjectInstance().
GetPropertyValue
("p1"));
1830
Assert.Equal(String.Empty, instance.
GetPropertyValue
("p1"));
Instance\ProjectInstance_Tests.cs (7)
42
Assert.True(i.
GetPropertyValue
("username") != null);
53
Assert.Equal("v1", p.
GetPropertyValue
("p1"));
54
Assert.Equal("v2X", p.
GetPropertyValue
("p2"));
208
Assert.Equal("p2", instance.
GetPropertyValue
("p"));
213
Assert.Equal("", instance.
GetPropertyValue
("p"));
241
Assert.Equal("v1b", first.
GetPropertyValue
("p1"));
242
Assert.Equal("v1", second.
GetPropertyValue
("p1"));
Microsoft.Build.Engine.UnitTests (82)
BackEnd\BuildManager_Tests.cs (5)
524
result.ProjectStateAfterBuild.
GetPropertyValue
("NewProperty").ShouldBe("FunValue");
527
result.ProjectStateAfterBuild.
GetPropertyValue
("RequestedProperty").ShouldBe("IsRequested");
1929
Assert.Equal("bar", instance.
GetPropertyValue
("Foo"));
1955
Assert.Equal("bar", instance.
GetPropertyValue
("Foo"));
1987
Assert.Equal("bar", instance.
GetPropertyValue
("Foo"));
BackEnd\ResultsCache_Tests.cs (4)
330
Assert.Equal("Value1", cachedResponseWithSubsetFlag1.Results.ProjectStateAfterBuild.
GetPropertyValue
("property1"));
331
Assert.Equal("Value2", cachedResponseWithSubsetFlag1.Results.ProjectStateAfterBuild.
GetPropertyValue
("property2"));
335
Assert.Equal("Value1", cachedResponseWithSubsetFlag2.Results.ProjectStateAfterBuild.
GetPropertyValue
("property1"));
336
Assert.Equal("", cachedResponseWithSubsetFlag2.Results.ProjectStateAfterBuild.
GetPropertyValue
("property2"));
BackEnd\TaskHostCallback_Tests.cs (2)
60
bool.Parse(projectInstance.
GetPropertyValue
("Result")).ShouldBe(expectedResult);
174
int.Parse(projectInstance.
GetPropertyValue
("Result")).ShouldBeGreaterThanOrEqualTo(1);
BackEnd\TaskHostFactory_Tests.cs (36)
79
string processId = projectInstance.
GetPropertyValue
("PID");
181
string transientPid = projectInstance.
GetPropertyValue
("PID");
182
string sidecarPid = projectInstance.
GetPropertyValue
("PID2");
333
projectInstance.
GetPropertyValue
("BoolOutput").ShouldBe(boolParam);
334
projectInstance.
GetPropertyValue
("BoolArrayOutput").ShouldBe(boolArrayParam);
335
projectInstance.
GetPropertyValue
("ByteOutput").ShouldBe(byteParam);
336
projectInstance.
GetPropertyValue
("ByteArrayOutput").ShouldBe(byteArrayParam);
337
projectInstance.
GetPropertyValue
("SByteOutput").ShouldBe(sbyteParam);
338
projectInstance.
GetPropertyValue
("SByteArrayOutput").ShouldBe(sbyteArrayParam);
339
projectInstance.
GetPropertyValue
("DoubleOutput").ShouldBe(doubleParam);
340
projectInstance.
GetPropertyValue
("DoubleArrayOutput").ShouldBe(doubleArrayParam);
341
projectInstance.
GetPropertyValue
("FloatOutput").ShouldBe(floatParam);
342
projectInstance.
GetPropertyValue
("FloatArrayOutput").ShouldBe(floatArrayParam);
343
projectInstance.
GetPropertyValue
("ShortOutput").ShouldBe(shortParam);
344
projectInstance.
GetPropertyValue
("ShortArrayOutput").ShouldBe(shortArrayParam);
345
projectInstance.
GetPropertyValue
("UShortOutput").ShouldBe(ushortParam);
346
projectInstance.
GetPropertyValue
("UShortArrayOutput").ShouldBe(ushortArrayParam);
347
projectInstance.
GetPropertyValue
("IntOutput").ShouldBe(intParam);
348
projectInstance.
GetPropertyValue
("IntArrayOutput").ShouldBe(intArrayParam);
349
projectInstance.
GetPropertyValue
("UIntOutput").ShouldBe(uintParam);
350
projectInstance.
GetPropertyValue
("UIntArrayOutput").ShouldBe(uintArrayParam);
351
projectInstance.
GetPropertyValue
("LongOutput").ShouldBe(longParam);
352
projectInstance.
GetPropertyValue
("LongArrayOutput").ShouldBe(longArrayParam);
353
projectInstance.
GetPropertyValue
("ULongOutput").ShouldBe(ulongParam);
354
projectInstance.
GetPropertyValue
("ULongArrayOutput").ShouldBe(ulongArrayParam);
355
projectInstance.
GetPropertyValue
("DecimalOutput").ShouldBe(decimalParam);
356
projectInstance.
GetPropertyValue
("DecimalArrayOutput").ShouldBe(decimalArrayParam);
357
projectInstance.
GetPropertyValue
("CharOutput").ShouldBe(charParam);
358
projectInstance.
GetPropertyValue
("CharArrayOutput").ShouldBe(charArrayParam);
359
projectInstance.
GetPropertyValue
("StringOutput").ShouldBe(stringParam);
360
projectInstance.
GetPropertyValue
("StringArrayOutput").ShouldBe(stringArrayParam);
361
projectInstance.
GetPropertyValue
("DateTimeOutput").ShouldBe(dateTimeParam);
362
projectInstance.
GetPropertyValue
("DateTimeArrayOutput").ShouldBe(dateTimeArrayParam);
363
projectInstance.
GetPropertyValue
("CustomStructOutput").ShouldBe(TaskBuilderTestTask.s_customStruct.ToString(CultureInfo.InvariantCulture));
364
projectInstance.
GetPropertyValue
("EnumOutput").ShouldBe(TargetBuiltReason.BeforeTargets.ToString());
397
string taskPidStr = projectInstance.
GetPropertyValue
("TaskPid");
Construction\SolutionProjectGenerator_Tests.cs (17)
485
Assert.Equal(t.DefaultSubToolsetVersion, instances[0].
GetPropertyValue
("VisualStudioVersion"));
489
Assert.Equal(String.Empty, instances[0].
GetPropertyValue
("VisualStudioVersion"));
530
Assert.Equal("11.0", instances[0].
GetPropertyValue
("VisualStudioVersion"));
567
Assert.Equal("ABC", instances[0].
GetPropertyValue
("VisualStudioVersion"));
766
Assert.Equal("11.0", instances[0].
GetPropertyValue
("VisualStudioVersion"));
1417
Assert.Equal(toolsVersionParameter, instances[0].
GetPropertyValue
("ProjectToolsVersion"));
1673
Assert.Equal("Debug", instances[0].
GetPropertyValue
("Configuration"));
1676
Assert.Equal("Mixed Platforms", instances[0].
GetPropertyValue
("Platform"));
1705
Assert.Equal("Release", instances[0].
GetPropertyValue
("Configuration"));
1708
Assert.Equal("Any CPU", instances[0].
GetPropertyValue
("Platform"));
1732
Assert.Equal("Debug", msbuildProject.
GetPropertyValue
("AspNetConfiguration"));
1736
Assert.Equal("Release", msbuildProject.
GetPropertyValue
("AspNetConfiguration"));
1761
Assert.Equal("v4.0", msbuildProject.
GetPropertyValue
("TargetFrameworkVersion"));
1771
Assert.Equal("v3.5", msbuildProject.
GetPropertyValue
("TargetFrameworkVersion"));
1775
Assert.Equal("v2.0", msbuildProject.
GetPropertyValue
("TargetFrameworkVersion"));
1781
Assert.Equal("userdefined", msbuildProject.
GetPropertyValue
("TargetFrameworkVersion"));
2815
Assert.Equal(enable ? expectedPropertyValue : string.Empty, projectInstance.
GetPropertyValue
("PropertyA"));
Evaluation\Expander_Tests.cs (2)
5099
projectInstance.
GetPropertyValue
("_value").ShouldBe("-1");
5100
projectInstance.
GetPropertyValue
("_otherValue").ShouldBe("test-value");
Graph\GetCompatiblePlatformGraph_Tests.cs (4)
340
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GetPropertyValue
("Platform").ShouldBe(GetFirstNodeWithProjectNumber(graph, 1).ProjectInstance.
GetPropertyValue
("Platform"));
436
GetFirstNodeWithProjectNumber(graphFromSolution, 2).ProjectInstance.
GetPropertyValue
("Platform").ShouldBe("AnyCPU", "Project2 should have followed the sln config to AnyCPU");
437
GetFirstNodeWithProjectNumber(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)
118
var innerBuildPropertyValue = innerBuild.ProjectInstance.
GetPropertyValue
(InnerBuildPropertyName);
Graph\ProjectGraph_Tests.cs (1)
2144
var referencedInnerBuild = GetNodesWithProjectNumber(graph, 1).First(n => n.ProjectInstance.
GetPropertyValue
(InnerBuildPropertyName) == "a");
Instance\ProjectInstance_Internal_Tests.cs (7)
329
p.
GetPropertyValue
("VisualStudioVersion").ShouldBe(MSBuildConstants.CurrentVisualStudioVersion);
333
p.
GetPropertyValue
("VisualStudioVersion").ShouldBe(p.Toolset.DefaultSubToolsetVersion);
360
p.
GetPropertyValue
("VisualStudioVersion").ShouldBe("ABCD");
388
p.
GetPropertyValue
("VisualStudioVersion").ShouldBe("ABCDE");
429
p.
GetPropertyValue
("VisualStudioVersion").ShouldBe("ABCDEF");
906
projectInstance.
GetPropertyValue
(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase);
934
projectInstance.
GetPropertyValue
(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase);
InstanceFromRemote\ProjectInstance_FromImmutableProjectLink_Tests.cs (1)
50
string value = instance.
GetPropertyValue
(kvp.Key);
ProjectCache\ProjectCacheTests.cs (2)
657
var buildProjectInSolutionValue = node.ProjectInstance.
GetPropertyValue
("BuildProjectInSolution");
662
var projectDependencyValue = node.ProjectInstance.
GetPropertyValue
("ProjectDependency");
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (35)
TargetTests.cs (35)
37
var shouldRun = instance.
GetPropertyValue
("_GeneratedEditorConfigShouldRun");
38
var hasItems = instance.
GetPropertyValue
("_GeneratedEditorConfigHasItems");
61
var shouldRun = instance.
GetPropertyValue
("_GeneratedEditorConfigShouldRun");
62
var hasItems = instance.
GetPropertyValue
("_GeneratedEditorConfigHasItems");
85
var shouldRun = instance.
GetPropertyValue
("_GeneratedEditorConfigShouldRun");
86
var hasItems = instance.
GetPropertyValue
("_GeneratedEditorConfigHasItems");
110
var shouldRun = instance.
GetPropertyValue
("_GeneratedEditorConfigShouldRun");
111
var hasItems = instance.
GetPropertyValue
("_GeneratedEditorConfigHasItems");
137
var shouldRun = instance.
GetPropertyValue
("_GeneratedEditorConfigShouldRun");
138
var hasItems = instance.
GetPropertyValue
("_GeneratedEditorConfigHasItems");
432
var langVersion = instance.
GetPropertyValue
("LangVersion");
433
var maxLangVersion = instance.
GetPropertyValue
("_MaxSupportedLangVersion");
461
var langVersion = instance.
GetPropertyValue
("LangVersion");
462
var maxLangVersion = instance.
GetPropertyValue
("_MaxSupportedLangVersion");
485
var langVersion = instance.
GetPropertyValue
("LangVersion");
486
var maxLangVersion = instance.
GetPropertyValue
("_MaxSupportedLangVersion");
487
var publicMaxLangVersion = instance.
GetPropertyValue
("MaxSupportedLangVersion");
512
var langVersion = instance.
GetPropertyValue
("LangVersion");
513
var maxLangVersion = instance.
GetPropertyValue
("_MaxSupportedLangVersion");
514
var publicMaxLangVersion = instance.
GetPropertyValue
("MaxSupportedLangVersion");
585
var emit = instance.
GetPropertyValue
("EmitCompilerGeneratedFiles");
586
var dir = instance.
GetPropertyValue
("CompilerGeneratedFilesOutputPath");
610
var emit = instance.
GetPropertyValue
("EmitCompilerGeneratedFiles");
611
var dir = instance.
GetPropertyValue
("CompilerGeneratedFilesOutputPath");
631
var emit = instance.
GetPropertyValue
("EmitCompilerGeneratedFiles");
632
var dir = instance.
GetPropertyValue
("CompilerGeneratedFilesOutputPath");
661
var emit = instance.
GetPropertyValue
("EmitCompilerGeneratedFiles");
662
var dir = instance.
GetPropertyValue
("CompilerGeneratedFilesOutputPath");
705
var actualSkipAnalyzersValue = instance.
GetPropertyValue
("_SkipAnalyzers");
764
var actualImplicitlySkippedAnalyzersValue = instance.
GetPropertyValue
("_ImplicitlySkipAnalyzers");
768
var actualSkipAnalyzersValue = instance.
GetPropertyValue
("_SkipAnalyzers");
772
var actualFeaturesValue = instance.
GetPropertyValue
("Features");
815
var msbuildProjectFileName = instance.
GetPropertyValue
("MSBuildProjectFile");
825
var actualLastBuildWithSkipAnalyzers = instance.
GetPropertyValue
("_LastBuildWithSkipAnalyzers");
912
var compilerApiVersionString = instance.
GetPropertyValue
("CompilerApiVersion");
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadMSBuildWorkspace.ProjectFileInfoProvider.cs (1)
45
getBuildProjects(projectPath).instances.SelectAsArray(static instance => instance.
GetPropertyValue
(PropertyNames.TargetPath)));
MSBuild (2)
XMake.cs (2)
1158
outputStream.WriteLine(builtProject.
GetPropertyValue
(getProperty[0]));
1163
jsonOutputFormatter.AddPropertiesInJsonFormat(getProperty, property => builtProject.
GetPropertyValue
(property));