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)
1286submission.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); 1735ProjectPropertyInstance outdir = metaprojectInstance.GetProperty("OutDir");
Instance\ProjectInstance.cs (3)
782var regularProperty = that.GetProperty(desiredProperty); 788var globalProperty = that.GetProperty(desiredProperty); 794var environmentProperty = that.GetProperty(desiredProperty);
Microsoft.Build.Engine.OM.UnitTests (11)
Instance\ProjectInstance_Tests.cs (10)
238Assert.False(Object.ReferenceEquals(first.GetProperty("p1"), second.GetProperty("p1"))); 241Assert.True(Object.ReferenceEquals(newProperty, first.GetProperty("p1"))); 825Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.GetProperty("p1").EvaluatedValue = "v2"; }); 891Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.GetProperty("g").EvaluatedValue = "v2"; }); 895instance.GetProperty(NativeMethodsShared.IsWindows ? "username" : "USER").EvaluatedValue = 916Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.GetProperty("g").EvaluatedValue = "v2"; }); 920instance.GetProperty(NativeMethodsShared.IsWindows ? "username" : "USER").EvaluatedValue = 938Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.GetProperty("g").EvaluatedValue = "v2"; }); 942instance.GetProperty(NativeMethodsShared.IsWindows ? "username" : "USER").EvaluatedValue =
Instance\ProjectPropertyInstance_Tests.cs (1)
94var property = snapshot.GetProperty("p");
Microsoft.Build.Engine.UnitTests (8)
BackEnd\BuildManager_Tests.cs (1)
1960Assert.Null(instance.GetProperty("Foo"));
BackEnd\IntrinsicTask_Tests.cs (5)
1281Assert.Equal("v0", p.GetProperty("global").EvaluatedValue); 1287Assert.Equal("v2", p.GetProperty("global").EvaluatedValue); 1291Assert.Equal("v0", p.GetProperty("global").EvaluatedValue); 1315string value = p.GetProperty("p").EvaluatedValue; 1320value = p.GetProperty("p").EvaluatedValue;
Graph\GraphTestingUtilities.cs (2)
96node.ProjectInstance.GetProperty(InnerBuildPropertyName).ShouldBeNull(); 105outerBuild.ProjectInstance.GetProperty(InnerBuildPropertyName).ShouldBeNull();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\Extensions.cs (1)
76=> executedProject.GetProperty(propertyName)?.EvaluatedValue;