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)
1429
FileClassifier.Shared.RegisterKnownImmutableLocations(project.
GetPropertyValue
);
Construction\Solution\SolutionProjectGenerator.cs (2)
1090
string directProjectToolsVersion = traversalProject.
GetPropertyValue
("ProjectToolsVersion");
2068
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)
1487
Assert.Equal("v1", project.CreateProjectInstance().
GetPropertyValue
("p1"));
1512
Assert.Equal("v^1", project.CreateProjectInstance().
GetPropertyValue
("p1"));
1832
Assert.Equal(String.Empty, instance.
GetPropertyValue
("p1"));
Instance\ProjectInstance_Tests.cs (7)
43
Assert.True(i.
GetPropertyValue
("username") != null);
54
Assert.Equal("v1", p.
GetPropertyValue
("p1"));
55
Assert.Equal("v2X", p.
GetPropertyValue
("p2"));
209
Assert.Equal("p2", instance.
GetPropertyValue
("p"));
214
Assert.Equal("", instance.
GetPropertyValue
("p"));
242
Assert.Equal("v1b", first.
GetPropertyValue
("p1"));
243
Assert.Equal("v1", second.
GetPropertyValue
("p1"));
Microsoft.Build.Engine.UnitTests (76)
BackEnd\BuildManager_Tests.cs (5)
524
result.ProjectStateAfterBuild.
GetPropertyValue
("NewProperty").ShouldBe("FunValue");
527
result.ProjectStateAfterBuild.
GetPropertyValue
("RequestedProperty").ShouldBe("IsRequested");
1928
Assert.Equal("bar", instance.
GetPropertyValue
("Foo"));
1954
Assert.Equal("bar", instance.
GetPropertyValue
("Foo"));
1986
Assert.Equal("bar", instance.
GetPropertyValue
("Foo"));
BackEnd\ResultsCache_Tests.cs (4)
333
Assert.Equal("Value1", cachedResponseWithSubsetFlag1.Results.ProjectStateAfterBuild.
GetPropertyValue
("property1"));
334
Assert.Equal("Value2", cachedResponseWithSubsetFlag1.Results.ProjectStateAfterBuild.
GetPropertyValue
("property2"));
338
Assert.Equal("Value1", cachedResponseWithSubsetFlag2.Results.ProjectStateAfterBuild.
GetPropertyValue
("property1"));
339
Assert.Equal("", cachedResponseWithSubsetFlag2.Results.ProjectStateAfterBuild.
GetPropertyValue
("property2"));
BackEnd\TaskHostFactory_Tests.cs (33)
47
string processId = projectInstance.
GetPropertyValue
("PID");
176
projectInstance.
GetPropertyValue
("BoolOutput").ShouldBe(boolParam);
177
projectInstance.
GetPropertyValue
("BoolArrayOutput").ShouldBe(boolArrayParam);
178
projectInstance.
GetPropertyValue
("ByteOutput").ShouldBe(byteParam);
179
projectInstance.
GetPropertyValue
("ByteArrayOutput").ShouldBe(byteArrayParam);
180
projectInstance.
GetPropertyValue
("SByteOutput").ShouldBe(sbyteParam);
181
projectInstance.
GetPropertyValue
("SByteArrayOutput").ShouldBe(sbyteArrayParam);
182
projectInstance.
GetPropertyValue
("DoubleOutput").ShouldBe(doubleParam);
183
projectInstance.
GetPropertyValue
("DoubleArrayOutput").ShouldBe(doubleArrayParam);
184
projectInstance.
GetPropertyValue
("FloatOutput").ShouldBe(floatParam);
185
projectInstance.
GetPropertyValue
("FloatArrayOutput").ShouldBe(floatArrayParam);
186
projectInstance.
GetPropertyValue
("ShortOutput").ShouldBe(shortParam);
187
projectInstance.
GetPropertyValue
("ShortArrayOutput").ShouldBe(shortArrayParam);
188
projectInstance.
GetPropertyValue
("UShortOutput").ShouldBe(ushortParam);
189
projectInstance.
GetPropertyValue
("UShortArrayOutput").ShouldBe(ushortArrayParam);
190
projectInstance.
GetPropertyValue
("IntOutput").ShouldBe(intParam);
191
projectInstance.
GetPropertyValue
("IntArrayOutput").ShouldBe(intArrayParam);
192
projectInstance.
GetPropertyValue
("UIntOutput").ShouldBe(uintParam);
193
projectInstance.
GetPropertyValue
("UIntArrayOutput").ShouldBe(uintArrayParam);
194
projectInstance.
GetPropertyValue
("LongOutput").ShouldBe(longParam);
195
projectInstance.
GetPropertyValue
("LongArrayOutput").ShouldBe(longArrayParam);
196
projectInstance.
GetPropertyValue
("ULongOutput").ShouldBe(ulongParam);
197
projectInstance.
GetPropertyValue
("ULongArrayOutput").ShouldBe(ulongArrayParam);
198
projectInstance.
GetPropertyValue
("DecimalOutput").ShouldBe(decimalParam);
199
projectInstance.
GetPropertyValue
("DecimalArrayOutput").ShouldBe(decimalArrayParam);
200
projectInstance.
GetPropertyValue
("CharOutput").ShouldBe(charParam);
201
projectInstance.
GetPropertyValue
("CharArrayOutput").ShouldBe(charArrayParam);
202
projectInstance.
GetPropertyValue
("StringOutput").ShouldBe(stringParam);
203
projectInstance.
GetPropertyValue
("StringArrayOutput").ShouldBe(stringArrayParam);
204
projectInstance.
GetPropertyValue
("DateTimeOutput").ShouldBe(dateTimeParam);
205
projectInstance.
GetPropertyValue
("DateTimeArrayOutput").ShouldBe(dateTimeArrayParam);
206
projectInstance.
GetPropertyValue
("CustomStructOutput").ShouldBe(TaskBuilderTestTask.s_customStruct.ToString(CultureInfo.InvariantCulture));
207
projectInstance.
GetPropertyValue
("EnumOutput").ShouldBe(TargetBuiltReason.BeforeTargets.ToString());
Construction\SolutionProjectGenerator_Tests.cs (17)
448
Assert.Equal(t.DefaultSubToolsetVersion, instances[0].
GetPropertyValue
("VisualStudioVersion"));
452
Assert.Equal(String.Empty, instances[0].
GetPropertyValue
("VisualStudioVersion"));
490
Assert.Equal("11.0", instances[0].
GetPropertyValue
("VisualStudioVersion"));
523
Assert.Equal("ABC", instances[0].
GetPropertyValue
("VisualStudioVersion"));
721
Assert.Equal("11.0", instances[0].
GetPropertyValue
("VisualStudioVersion"));
1365
Assert.Equal(toolsVersionParameter, instances[0].
GetPropertyValue
("ProjectToolsVersion"));
1610
Assert.Equal("Debug", instances[0].
GetPropertyValue
("Configuration"));
1613
Assert.Equal("Mixed Platforms", instances[0].
GetPropertyValue
("Platform"));
1642
Assert.Equal("Release", instances[0].
GetPropertyValue
("Configuration"));
1645
Assert.Equal("Any CPU", instances[0].
GetPropertyValue
("Platform"));
1669
Assert.Equal("Debug", msbuildProject.
GetPropertyValue
("AspNetConfiguration"));
1673
Assert.Equal("Release", msbuildProject.
GetPropertyValue
("AspNetConfiguration"));
1698
Assert.Equal("v4.0", msbuildProject.
GetPropertyValue
("TargetFrameworkVersion"));
1708
Assert.Equal("v3.5", msbuildProject.
GetPropertyValue
("TargetFrameworkVersion"));
1712
Assert.Equal("v2.0", msbuildProject.
GetPropertyValue
("TargetFrameworkVersion"));
1718
Assert.Equal("userdefined", msbuildProject.
GetPropertyValue
("TargetFrameworkVersion"));
2725
Assert.Equal(enable ? expectedPropertyValue : string.Empty, projectInstance.
GetPropertyValue
("PropertyA"));
Evaluation\Expander_Tests.cs (2)
4994
projectInstance.
GetPropertyValue
("_value").ShouldBe("-1");
4995
projectInstance.
GetPropertyValue
("_otherValue").ShouldBe("test-value");
Graph\GetCompatiblePlatformGraph_Tests.cs (4)
351
GetFirstNodeWithProjectNumber(graph, 2).ProjectInstance.
GetPropertyValue
("Platform").ShouldBe(GetFirstNodeWithProjectNumber(graph, 1).ProjectInstance.
GetPropertyValue
("Platform"));
447
GetFirstNodeWithProjectNumber(graphFromSolution, 2).ProjectInstance.
GetPropertyValue
("Platform").ShouldBe("AnyCPU", "Project2 should have followed the sln config to AnyCPU");
448
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)
2143
var referencedInnerBuild = GetNodesWithProjectNumber(graph, 1).First(n => n.ProjectInstance.
GetPropertyValue
(InnerBuildPropertyName) == "a");
Instance\ProjectInstance_Internal_Tests.cs (7)
330
p.
GetPropertyValue
("VisualStudioVersion").ShouldBe(MSBuildConstants.CurrentVisualStudioVersion);
334
p.
GetPropertyValue
("VisualStudioVersion").ShouldBe(p.Toolset.DefaultSubToolsetVersion);
361
p.
GetPropertyValue
("VisualStudioVersion").ShouldBe("ABCD");
389
p.
GetPropertyValue
("VisualStudioVersion").ShouldBe("ABCDE");
430
p.
GetPropertyValue
("VisualStudioVersion").ShouldBe("ABCDEF");
907
projectInstance.
GetPropertyValue
(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase);
935
projectInstance.
GetPropertyValue
(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase);
ProjectCache\ProjectCacheTests.cs (2)
639
var buildProjectInSolutionValue = node.ProjectInstance.
GetPropertyValue
("BuildProjectInSolution");
644
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");
431
var langVersion = instance.
GetPropertyValue
("LangVersion");
432
var maxLangVersion = instance.
GetPropertyValue
("_MaxSupportedLangVersion");
460
var langVersion = instance.
GetPropertyValue
("LangVersion");
461
var maxLangVersion = instance.
GetPropertyValue
("_MaxSupportedLangVersion");
484
var langVersion = instance.
GetPropertyValue
("LangVersion");
485
var maxLangVersion = instance.
GetPropertyValue
("_MaxSupportedLangVersion");
486
var publicMaxLangVersion = instance.
GetPropertyValue
("MaxSupportedLangVersion");
511
var langVersion = instance.
GetPropertyValue
("LangVersion");
512
var maxLangVersion = instance.
GetPropertyValue
("_MaxSupportedLangVersion");
513
var publicMaxLangVersion = instance.
GetPropertyValue
("MaxSupportedLangVersion");
584
var emit = instance.
GetPropertyValue
("EmitCompilerGeneratedFiles");
585
var dir = instance.
GetPropertyValue
("CompilerGeneratedFilesOutputPath");
609
var emit = instance.
GetPropertyValue
("EmitCompilerGeneratedFiles");
610
var dir = instance.
GetPropertyValue
("CompilerGeneratedFilesOutputPath");
630
var emit = instance.
GetPropertyValue
("EmitCompilerGeneratedFiles");
631
var dir = instance.
GetPropertyValue
("CompilerGeneratedFilesOutputPath");
660
var emit = instance.
GetPropertyValue
("EmitCompilerGeneratedFiles");
661
var dir = instance.
GetPropertyValue
("CompilerGeneratedFilesOutputPath");
704
var actualSkipAnalyzersValue = instance.
GetPropertyValue
("_SkipAnalyzers");
763
var actualImplicitlySkippedAnalyzersValue = instance.
GetPropertyValue
("_ImplicitlySkipAnalyzers");
767
var actualSkipAnalyzersValue = instance.
GetPropertyValue
("_SkipAnalyzers");
771
var actualFeaturesValue = instance.
GetPropertyValue
("Features");
814
var msbuildProjectFileName = instance.
GetPropertyValue
("MSBuildProjectFile");
824
var actualLastBuildWithSkipAnalyzers = instance.
GetPropertyValue
("_LastBuildWithSkipAnalyzers");
911
var compilerApiVersionString = instance.
GetPropertyValue
("CompilerApiVersion");
MSBuild (2)
XMake.cs (2)
1124
outputStream.WriteLine(builtProject.
GetPropertyValue
(getProperty[0]));
1129
jsonOutputFormatter.AddPropertiesInJsonFormat(getProperty, property => builtProject.
GetPropertyValue
(property));