Implemented interface member:
method
GetProperty
Microsoft.Build.Evaluation.IPropertyProvider<T>.GetProperty(System.String)
28 references to GetProperty
Microsoft.Build (8)
BackEnd\BuildManager\BuildManager.cs (1)
1286
submission.BuildRequestData.ProjectInstance!.
GetProperty
(ReservedPropertyNames.projectDirectory)!.EvaluatedValue,
BackEnd\Shared\BuildRequestConfiguration.cs (1)
192
_transferredProperties.Add(data.ProjectInstance.
GetProperty
(name));
Construction\Solution\SolutionProjectGenerator.cs (3)
753
_selectedSolutionConfiguration = String.Format(CultureInfo.InvariantCulture, "{0}|{1}", traversalInstance.
GetProperty
("Configuration").EvaluatedValue, traversalInstance.
GetProperty
("Platform").EvaluatedValue);
1735
ProjectPropertyInstance outdir = metaprojectInstance.
GetProperty
("OutDir");
Instance\ProjectInstance.cs (3)
782
var regularProperty = that.
GetProperty
(desiredProperty);
788
var globalProperty = that.
GetProperty
(desiredProperty);
794
var environmentProperty = that.
GetProperty
(desiredProperty);
Microsoft.Build.Engine.OM.UnitTests (11)
Instance\ProjectInstance_Tests.cs (10)
238
Assert.False(Object.ReferenceEquals(first.
GetProperty
("p1"), second.
GetProperty
("p1")));
241
Assert.True(Object.ReferenceEquals(newProperty, first.
GetProperty
("p1")));
825
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.
GetProperty
("p1").EvaluatedValue = "v2"; });
891
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.
GetProperty
("g").EvaluatedValue = "v2"; });
895
instance.
GetProperty
(NativeMethodsShared.IsWindows ? "username" : "USER").EvaluatedValue =
916
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.
GetProperty
("g").EvaluatedValue = "v2"; });
920
instance.
GetProperty
(NativeMethodsShared.IsWindows ? "username" : "USER").EvaluatedValue =
938
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.
GetProperty
("g").EvaluatedValue = "v2"; });
942
instance.
GetProperty
(NativeMethodsShared.IsWindows ? "username" : "USER").EvaluatedValue =
Instance\ProjectPropertyInstance_Tests.cs (1)
94
var property = snapshot.
GetProperty
("p");
Microsoft.Build.Engine.UnitTests (8)
BackEnd\BuildManager_Tests.cs (1)
1960
Assert.Null(instance.
GetProperty
("Foo"));
BackEnd\IntrinsicTask_Tests.cs (5)
1281
Assert.Equal("v0", p.
GetProperty
("global").EvaluatedValue);
1287
Assert.Equal("v2", p.
GetProperty
("global").EvaluatedValue);
1291
Assert.Equal("v0", p.
GetProperty
("global").EvaluatedValue);
1315
string value = p.
GetProperty
("p").EvaluatedValue;
1320
value = p.
GetProperty
("p").EvaluatedValue;
Graph\GraphTestingUtilities.cs (2)
96
node.ProjectInstance.
GetProperty
(InnerBuildPropertyName).ShouldBeNull();
105
outerBuild.ProjectInstance.
GetProperty
(InnerBuildPropertyName).ShouldBeNull();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\Extensions.cs (1)
76
=> executedProject.
GetProperty
(propertyName)?.EvaluatedValue;