75 references to GetProperty
Microsoft.Build (2)
Definition\ProjectProperty.cs (1)
333ProjectProperty property = project.GetProperty(propertyName);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
164/// Facilitate remoting the <see cref="Project.GetProperty"/>.
Microsoft.Build.Engine.OM.UnitTests (36)
Definition\DefinitionEditing_Tests.cs (3)
1824project.RemoveProperty(project.GetProperty("p1")); 1830Assert.Null(project.GetProperty("p1")); 1847project.RemoveProperty(project.GetProperty("p1"));
Definition\EditingElementsReferencedByOrReferences_Tests.cs (1)
323ProjectProperty property = project.GetProperty("P");
Definition\Project_Tests.cs (6)
883project.GetProperty("p").IsGlobalProperty.ShouldBeTrue(); 1640ProjectProperty property1 = project.GetProperty("p"); 1650ProjectProperty property2 = project.GetProperty("p"); 4420project.GetProperty("p").UnevaluatedValue.ShouldBe("v2"); 4421project.GetProperty("p2").EvaluatedValue.ShouldBe("Xv2"); 4422project.GetProperty("p2").UnevaluatedValue.ShouldBe("X$(p)");
Definition\ProjectProperty_Tests.cs (17)
139ProjectProperty property = project.GetProperty("MSBuildProjectDirectory"); 156ProjectProperty property = project.GetProperty(varName); 165property = project.GetProperty(varName); 180Assert.True(project.GetProperty(varName).IsEnvironmentProperty); 181Assert.False(project.GetProperty(varName).IsGlobalProperty); 182Assert.False(project.GetProperty(varName).IsReservedProperty); 183Assert.False(project.GetProperty(varName).IsImported); 196Assert.False(project.GetProperty("g").IsEnvironmentProperty); 197Assert.True(project.GetProperty("g").IsGlobalProperty); 198Assert.False(project.GetProperty("g").IsReservedProperty); 199Assert.False(project.GetProperty("g").IsImported); 212Assert.False(project.GetProperty("MSBuildProjectFile").IsEnvironmentProperty); 213Assert.False(project.GetProperty("MSBuildProjectFile").IsGlobalProperty); 214Assert.True(project.GetProperty("MSBuildProjectFile").IsReservedProperty); 215Assert.False(project.GetProperty("MSBuildProjectFile").IsImported); 274ProjectProperty property = project.GetProperty("p"); 292ProjectProperty property = project.GetProperty("p");
Definition\ProtectImports_Tests.cs (1)
619ProjectProperty property = project.GetProperty(PropertyName);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (3)
86Assert.Same(added, toAdd.GetProperty(name)); 89var view = this.View.GetProperty(name); 90var real = this.Real.GetProperty(name);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (4)
354var fooReal = pair.Real.GetProperty("fooProp"); 363var fooRealNew = pair.Real.GetProperty("fooProp"); 364var fooViewNew = pair.View.GetProperty("fooProp"); 380Assert.Null(pair.View.GetProperty("fooProp"));
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (1)
91public MockProjectPropertyLinkRemoter GetProperty(string name) => this.OwningCollection.Export<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.GetProperty(name));
Microsoft.Build.Engine.UnitTests (37)
Definition\Project_Internal_Tests.cs (2)
242project.GetProperty("P1").ShouldBeNull(); 243project.GetProperty("P2").ShouldBeNull();
Definition\ProjectEvaluationContext_Tests.cs (2)
871var searchedPath = project.GetProperty("SearchedPath"); 927var searchedPath = project.GetProperty("SearchedPath");
Evaluation\Evaluator_Tests.cs (11)
167Assert.Null(project.GetProperty("foo")); 168Assert.Null(project.GetProperty("bar")); 180Assert.NotNull(project.GetProperty("foo")); 181Assert.Null(project.GetProperty("bar")); 193Assert.NotNull(project.GetProperty("foo")); 194Assert.NotNull(project.GetProperty("bar")); 205Assert.Null(project.GetProperty("foo")); 206Assert.Null(project.GetProperty("bar")); 1451ProjectProperty property = project.GetProperty("p"); 1480ProjectRootElement predecessorXmlRoot = project.GetProperty("outdir").Predecessor.Xml.ContainingProject; 1885Assert.Null(project.GetProperty("p").Predecessor);
Evaluation\IntrinsicFunctionOverload_Tests.cs (20)
39ProjectProperty? actualProperty = project.GetProperty("Actual"); 61ProjectProperty? actualProperty = project.GetProperty("Actual"); 83ProjectProperty? actualProperty = project.GetProperty("Actual"); 105ProjectProperty? actualProperty = project.GetProperty("Actual"); 125ProjectProperty? actualProperty = project.GetProperty("Actual"); 147ProjectProperty? actualProperty = project.GetProperty("Actual"); 169ProjectProperty? actualProperty = project.GetProperty("Actual"); 191ProjectProperty? actualProperty = project.GetProperty("Actual"); 211ProjectProperty? actualProperty = project.GetProperty("Actual"); 233ProjectProperty? actualProperty = project.GetProperty("Actual"); 255ProjectProperty? actualProperty = project.GetProperty("Actual"); 277ProjectProperty? actualProperty = project.GetProperty("Actual"); 297ProjectProperty? actualProperty = project.GetProperty("Actual"); 319ProjectProperty? actualProperty = project.GetProperty("Actual"); 341ProjectProperty? actualProperty = project.GetProperty("Actual"); 363ProjectProperty? actualProperty = project.GetProperty("Actual"); 383ProjectProperty? actualProperty = project.GetProperty("Actual"); 405ProjectProperty? actualProperty = project.GetProperty("Actual"); 427ProjectProperty? actualProperty = project.GetProperty("Actual"); 449ProjectProperty? actualProperty = project.GetProperty("Actual");
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
823ProjectProperty property = project.GetProperty(propertyName);
Evaluation\SdkResultEvaluation_Tests.cs (1)
90project.GetProperty("PropertyFromSdkResolver").ShouldBeNull();