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