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)
1369
if (String.Equals(project.
GetPropertyValue
(MSBuildConstants.TreatWarningsAsErrors)?.Trim(), "true", StringComparison.OrdinalIgnoreCase))
1376
ISet<string> warningsAsErrors = ParseWarningCodes(project.
GetPropertyValue
(MSBuildConstants.WarningsAsErrors));
1384
ISet<string> warningsNotAsErrors = ParseWarningCodes(project.
GetPropertyValue
(MSBuildConstants.WarningsNotAsErrors));
1391
ISet<string> warningsAsMessages = ParseWarningCodes(project.
GetPropertyValue
(MSBuildConstants.WarningsAsMessages));
1406
FileClassifier.Shared.RegisterImmutableDirectory(project.
GetPropertyValue
("FrameworkPathOverride")?.Trim());
1408
FileClassifier.Shared.RegisterImmutableDirectory(project.
GetPropertyValue
("NetCoreRoot")?.Trim());
Construction\Solution\SolutionProjectGenerator.cs (2)
1086
string directProjectToolsVersion = traversalProject.
GetPropertyValue
("ProjectToolsVersion");
2064
properties[property.Item1] = EscapingUtilities.Escape(traversalProject.
GetPropertyValue
(property.Item1));
Graph\ProjectInterpretation.cs (18)
106
string solutionConfigurationXml = requesterInstance.
GetPropertyValue
(SolutionProjectGenerator.CurrentSolutionConfigurationContents);
126
bool enableDynamicPlatformResolution = ConversionUtilities.ValidBooleanTrue(requesterInstance.
GetPropertyValue
(EnableDynamicPlatformResolutionPropertyName));
164
bool shouldUnsetParentConfigurationAndPlatform = !ConversionUtilities.ValidBooleanFalse(requesterInstance.
GetPropertyValue
(ShouldUnsetParentConfigurationAndPlatformPropertyName));
181
string requesterPlatform = requesterInstance.
GetPropertyValue
("Platform");
182
string requesterPlatformLookupTable = requesterInstance.
GetPropertyValue
("PlatformLookupTable");
191
var selectedPlatform = PlatformNegotiation.GetNearestPlatform(overridePlatformNegotiationMetadataValue, projectInstance.
GetPropertyValue
(PlatformMetadataName), projectInstance.
GetPropertyValue
(PlatformsMetadataName), projectInstance.
GetPropertyValue
(PlatformLookupTableMetadataName), requesterInstance.
GetPropertyValue
(PlatformLookupTableMetadataName), projectInstance.FullPath, requesterInstance.
GetPropertyValue
(PlatformMetadataName));
217
return project.
GetPropertyValue
(GetInnerBuildPropertyName(project));
222
return project.
GetPropertyValue
(PropertyNames.InnerBuildProperty);
227
return project.
GetPropertyValue
(project.
GetPropertyValue
(PropertyNames.InnerBuildPropertyValues));
562
if (string.IsNullOrWhiteSpace(projectInstance.
GetPropertyValue
(AddTransitiveProjectReferencesInStaticGraphPropertyName)) &&
563
MSBuildStringIsTrue(projectInstance.
GetPropertyValue
("UsingMicrosoftNETSdk")) &&
564
MSBuildStringIsFalse(projectInstance.
GetPropertyValue
("DisableTransitiveProjectReferences")))
570
projectInstance.
GetPropertyValue
(AddTransitiveProjectReferencesInStaticGraphPropertyName));
Microsoft.Build.Engine.OM.UnitTests (10)
Definition\DefinitionEditing_Tests.cs (3)
1483
Assert.Equal("v1", project.CreateProjectInstance().
GetPropertyValue
("p1"));
1508
Assert.Equal("v^1", project.CreateProjectInstance().
GetPropertyValue
("p1"));
1828
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)
525
result.ProjectStateAfterBuild.
GetPropertyValue
("NewProperty").ShouldBe("FunValue");
528
result.ProjectStateAfterBuild.
GetPropertyValue
("RequestedProperty").ShouldBe("IsRequested");
1863
Assert.Equal("bar", instance.
GetPropertyValue
("Foo"));
1889
Assert.Equal("bar", instance.
GetPropertyValue
("Foo"));
1921
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");
196
projectInstance.
GetPropertyValue
("BoolOutput").ShouldBe(boolParam);
197
projectInstance.
GetPropertyValue
("BoolArrayOutput").ShouldBe(boolArrayParam);
198
projectInstance.
GetPropertyValue
("ByteOutput").ShouldBe(byteParam);
199
projectInstance.
GetPropertyValue
("ByteArrayOutput").ShouldBe(byteArrayParam);
200
projectInstance.
GetPropertyValue
("SByteOutput").ShouldBe(sbyteParam);
201
projectInstance.
GetPropertyValue
("SByteArrayOutput").ShouldBe(sbyteArrayParam);
202
projectInstance.
GetPropertyValue
("DoubleOutput").ShouldBe(doubleParam);
203
projectInstance.
GetPropertyValue
("DoubleArrayOutput").ShouldBe(doubleArrayParam);
204
projectInstance.
GetPropertyValue
("FloatOutput").ShouldBe(floatParam);
205
projectInstance.
GetPropertyValue
("FloatArrayOutput").ShouldBe(floatArrayParam);
206
projectInstance.
GetPropertyValue
("ShortOutput").ShouldBe(shortParam);
207
projectInstance.
GetPropertyValue
("ShortArrayOutput").ShouldBe(shortArrayParam);
208
projectInstance.
GetPropertyValue
("UShortOutput").ShouldBe(ushortParam);
209
projectInstance.
GetPropertyValue
("UShortArrayOutput").ShouldBe(ushortArrayParam);
210
projectInstance.
GetPropertyValue
("IntOutput").ShouldBe(intParam);
211
projectInstance.
GetPropertyValue
("IntArrayOutput").ShouldBe(intArrayParam);
212
projectInstance.
GetPropertyValue
("UIntOutput").ShouldBe(uintParam);
213
projectInstance.
GetPropertyValue
("UIntArrayOutput").ShouldBe(uintArrayParam);
214
projectInstance.
GetPropertyValue
("LongOutput").ShouldBe(longParam);
215
projectInstance.
GetPropertyValue
("LongArrayOutput").ShouldBe(longArrayParam);
216
projectInstance.
GetPropertyValue
("ULongOutput").ShouldBe(ulongParam);
217
projectInstance.
GetPropertyValue
("ULongArrayOutput").ShouldBe(ulongArrayParam);
218
projectInstance.
GetPropertyValue
("DecimalOutput").ShouldBe(decimalParam);
219
projectInstance.
GetPropertyValue
("DecimalArrayOutput").ShouldBe(decimalArrayParam);
220
projectInstance.
GetPropertyValue
("CharOutput").ShouldBe(charParam);
221
projectInstance.
GetPropertyValue
("CharArrayOutput").ShouldBe(charArrayParam);
222
projectInstance.
GetPropertyValue
("StringOutput").ShouldBe(stringParam);
223
projectInstance.
GetPropertyValue
("StringArrayOutput").ShouldBe(stringArrayParam);
224
projectInstance.
GetPropertyValue
("DateTimeOutput").ShouldBe(dateTimeParam);
225
projectInstance.
GetPropertyValue
("DateTimeArrayOutput").ShouldBe(dateTimeArrayParam);
226
projectInstance.
GetPropertyValue
("CustomStructOutput").ShouldBe(TaskBuilderTestTask.s_customStruct.ToString(CultureInfo.InvariantCulture));
227
projectInstance.
GetPropertyValue
("EnumOutput").ShouldBe(TargetBuiltReason.BeforeTargets.ToString());
Construction\SolutionProjectGenerator_Tests.cs (17)
434
Assert.Equal(t.DefaultSubToolsetVersion, instances[0].
GetPropertyValue
("VisualStudioVersion"));
438
Assert.Equal(String.Empty, instances[0].
GetPropertyValue
("VisualStudioVersion"));
474
Assert.Equal("11.0", instances[0].
GetPropertyValue
("VisualStudioVersion"));
505
Assert.Equal("ABC", instances[0].
GetPropertyValue
("VisualStudioVersion"));
703
Assert.Equal("11.0", instances[0].
GetPropertyValue
("VisualStudioVersion"));
1329
Assert.Equal(toolsVersionParameter, instances[0].
GetPropertyValue
("ProjectToolsVersion"));
1566
Assert.Equal("Debug", instances[0].
GetPropertyValue
("Configuration"));
1569
Assert.Equal("Mixed Platforms", instances[0].
GetPropertyValue
("Platform"));
1596
Assert.Equal("Release", instances[0].
GetPropertyValue
("Configuration"));
1599
Assert.Equal("Any CPU", instances[0].
GetPropertyValue
("Platform"));
1621
Assert.Equal("Debug", msbuildProject.
GetPropertyValue
("AspNetConfiguration"));
1625
Assert.Equal("Release", msbuildProject.
GetPropertyValue
("AspNetConfiguration"));
1648
Assert.Equal("v4.0", msbuildProject.
GetPropertyValue
("TargetFrameworkVersion"));
1658
Assert.Equal("v3.5", msbuildProject.
GetPropertyValue
("TargetFrameworkVersion"));
1662
Assert.Equal("v2.0", msbuildProject.
GetPropertyValue
("TargetFrameworkVersion"));
1668
Assert.Equal("userdefined", msbuildProject.
GetPropertyValue
("TargetFrameworkVersion"));
2629
Assert.Equal(enable ? expectedPropertyValue : string.Empty, projectInstance.
GetPropertyValue
("PropertyA"));
Evaluation\Expander_Tests.cs (2)
4938
projectInstance.
GetPropertyValue
("_value").ShouldBe("-1");
4939
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)
326
p.
GetPropertyValue
("VisualStudioVersion").ShouldBe(MSBuildConstants.CurrentVisualStudioVersion);
330
p.
GetPropertyValue
("VisualStudioVersion").ShouldBe(p.Toolset.DefaultSubToolsetVersion);
356
p.
GetPropertyValue
("VisualStudioVersion").ShouldBe("ABCD");
383
p.
GetPropertyValue
("VisualStudioVersion").ShouldBe("ABCDE");
422
p.
GetPropertyValue
("VisualStudioVersion").ShouldBe("ABCDEF");
894
projectInstance.
GetPropertyValue
(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase);
922
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");
MSBuild (2)
XMake.cs (2)
1113
outputStream.WriteLine(builtProject.
GetPropertyValue
(getProperty[0]));
1118
jsonOutputFormatter.AddPropertiesInJsonFormat(getProperty, property => builtProject.
GetPropertyValue
(property));