3 instantiations of ProjectPropertyElement
Microsoft.Build (3)
Construction\ProjectPropertyElement.cs (1)
101
return new
ProjectPropertyElement
(element, containingProject);
Evaluation\ProjectParser.cs (1)
229
ProjectPropertyElement property = new
ProjectPropertyElement
(childElement, propertyGroup, _project);
ObjectModelRemoting\LinkedObjectFactory.cs (1)
195
return new
ProjectPropertyElement
(link);
98 references to ProjectPropertyElement
Microsoft.Build (51)
Construction\ProjectPropertyElement.cs (1)
93
internal static
ProjectPropertyElement
CreateDisconnected(string name, ProjectRootElement containingProject)
Construction\ProjectPropertyGroupElement.cs (8)
48
public ICollection<
ProjectPropertyElement
> Properties => GetChildrenOfType<
ProjectPropertyElement
>();
53
public ICollection<
ProjectPropertyElement
> PropertiesReversed => GetChildrenReversedOfType<
ProjectPropertyElement
>();
59
public
ProjectPropertyElement
AddProperty(string name, string unevaluatedValue)
64
ProjectPropertyElement
newProperty = ContainingProject.CreatePropertyElement(name);
76
public
ProjectPropertyElement
SetProperty(string name, string unevaluatedValue)
81
foreach (
ProjectPropertyElement
property in Properties)
Construction\ProjectRootElement.cs (9)
334
public ICollection<
ProjectPropertyElement
> Properties => new ReadOnlyCollection<
ProjectPropertyElement
>(GetAllChildrenOfType<
ProjectPropertyElement
>());
1162
public
ProjectPropertyElement
AddProperty(string name, string value)
1165
ProjectPropertyElement
matchingProperty = null;
1179
foreach (
ProjectPropertyElement
property in propertyGroup.Properties)
1205
ProjectPropertyElement
newProperty = matchingPropertyGroup.AddProperty(name, value);
1402
public
ProjectPropertyElement
CreatePropertyElement(string name)
1404
return Link != null ? RootLink.CreatePropertyElement(name) :
ProjectPropertyElement
.CreateDisconnected(name, this);
Construction\Solution\SolutionProjectGenerator.cs (9)
915
ProjectPropertyElement
directorySolutionPropsFileProperty = traversalProject.CreatePropertyElement("_DirectorySolutionPropsFile");
919
ProjectPropertyElement
directorySolutionPropsBasePathProperty = traversalProject.CreatePropertyElement("_DirectorySolutionPropsBasePath");
923
ProjectPropertyElement
directorySolutionPropsPathProperty = traversalProject.CreatePropertyElement("DirectorySolutionPropsPath");
933
ProjectPropertyElement
directorySolutionTargetsFileProperty = traversalProject.CreatePropertyElement("_DirectorySolutionTargetsFile");
937
ProjectPropertyElement
directorySolutionTargetsBasePathProperty = traversalProject.CreatePropertyElement("_DirectorySolutionTargetsBasePath");
941
ProjectPropertyElement
directorySolutionTargetsPathProperty = traversalProject.CreatePropertyElement("DirectorySolutionTargetsPath");
2296
ProjectPropertyElement
tfv20Property = frameworkVersionProperties.AddProperty("TargetFrameworkVersion", "v2.0");
2297
ProjectPropertyElement
tfv35Property = frameworkVersionProperties.AddProperty("TargetFrameworkVersion", "v3.5");
2298
ProjectPropertyElement
tfv40Property = frameworkVersionProperties.AddProperty("TargetFrameworkVersion", "v4.0");
Definition\Project.cs (2)
2944
ProjectPropertyElement
propertyElement = Xml.AddProperty(name, unevaluatedValue);
4453
public ProjectProperty SetProperty(
ProjectPropertyElement
propertyElement, string evaluatedValueEscaped, LoggingContext loggingContext)
Definition\ProjectProperty.cs (7)
183
public abstract
ProjectPropertyElement
Xml
291
internal static ProjectProperty Create(Project project,
ProjectPropertyElement
xml, string evaluatedValueEscaped, ProjectProperty predecessor)
351
private readonly
ProjectPropertyElement
_xml;
359
internal ProjectPropertyXmlBacked(Project project,
ProjectPropertyElement
xml, string evaluatedValueEscaped)
448
public override
ProjectPropertyElement
Xml
504
internal ProjectPropertyXmlBackedWithPredecessor(Project project,
ProjectPropertyElement
xml, string evaluatedValueEscaped, ProjectProperty predecessor)
644
public override
ProjectPropertyElement
Xml
Evaluation\Evaluator.cs (3)
470
foreach (
ProjectPropertyElement
propertyElement in propertyGroupElement.Properties)
981
foreach (
ProjectPropertyElement
propertyElement in propertyGroupElement.Properties)
1275
private void EvaluatePropertyElement(
ProjectPropertyElement
propertyElement)
Evaluation\IEvaluatorData.cs (1)
276
P SetProperty(
ProjectPropertyElement
propertyElement, string evaluatedValueEscaped, BackEnd.Logging.LoggingContext loggingContext);
Evaluation\LazyItemEvaluator.EvaluatorData.cs (1)
309
public P SetProperty(
ProjectPropertyElement
propertyElement, string evaluatedValueEscaped, BackEnd.Logging.LoggingContext loggingContext)
Evaluation\ProjectParser.cs (1)
229
ProjectPropertyElement
property = new ProjectPropertyElement(childElement, propertyGroup, _project);
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
112
public P SetProperty(
ProjectPropertyElement
propertyElement, string evaluatedValueEscaped, LoggingContext loggingContext)
Instance\ProjectInstance.cs (1)
1807
ProjectPropertyInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SetProperty(
ProjectPropertyElement
propertyElement, string evaluatedValueEscaped, LoggingContext loggingContext)
Instance\ProjectPropertyInstance.cs (2)
306
internal
ProjectPropertyElement
ToProjectPropertyElement(ProjectElementContainer parent)
308
ProjectPropertyElement
property = parent.ContainingProject.CreatePropertyElement(Name);
ObjectModelRemoting\ConstructionObjectLinks\ProjectPropertyElementLink.cs (1)
12
/// Allow for creating a local representation to external object of type <see cref="
ProjectPropertyElement
"/>
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
148
public abstract
ProjectPropertyElement
CreatePropertyElement(string name);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectPropertyLink.cs (1)
25
public abstract
ProjectPropertyElement
Xml { get; }
ObjectModelRemoting\LinkedObjectFactory.cs (2)
193
public
ProjectPropertyElement
Create(ProjectPropertyElementLink link)
353
public override
ProjectPropertyElement
Xml => Link.Xml;
Microsoft.Build.Engine.OM.UnitTests (46)
Construction\ConstructionEditing_Tests.cs (11)
2120
ProjectPropertyElement
property = project.AddProperty("p", "v1");
2186
ProjectPropertyElement
property1 = project.AddProperty("p", "v1");
2188
ProjectPropertyElement
property2 = project.AddProperty("p", "v2");
2209
ProjectPropertyElement
property1 = project.AddProperty("p", "v1");
2233
ProjectPropertyElement
property1 = project.AddProperty("p", "v1");
2591
var
element = ProjectRootElement.Create().AddProperty("p", "v1");
2602
var
element = ProjectRootElement.Create().AddProperty("p", "v1");
2852
var
element = ProjectRootElement.Create().AddTarget("t").AddPropertyGroup().AddProperty("p", "v1");
2938
var
element = ProjectRootElement.Create().AddProperty("p", "v1");
2949
var
element = ProjectRootElement.Create().AddProperty("p", "v1");
3184
var
element = ProjectRootElement.Create().AddTarget("t").AddPropertyGroup().AddProperty("p", "v1");
Construction\ProjectPropertyElement_Tests.cs (12)
26
ProjectPropertyElement
property = GetPropertyXml();
50
ProjectPropertyElement
property = Helpers.GetFirst(propertyGroup.Properties);
159
ProjectPropertyElement
property = GetPropertyXml();
175
ProjectPropertyElement
property = project.AddProperty("p", "v1");
189
ProjectPropertyElement
property = GetPropertyXml();
202
ProjectPropertyElement
property = GetPropertyXml();
218
ProjectPropertyElement
property = GetPropertyXml();
229
ProjectPropertyElement
property = GetPropertyXml();
245
ProjectPropertyElement
property = GetPropertyXml();
257
ProjectPropertyElement
property = project.AddProperty("p", "v1");
268
private static
ProjectPropertyElement
GetPropertyXml()
281
ProjectPropertyElement
property = Helpers.GetFirst(propertyGroup.Properties);
Construction\ProjectRootElement_Tests.cs (1)
830
List<
ProjectPropertyElement
> properties = Helpers.MakeList(project.Properties);
Definition\Project_Tests.cs (5)
859
ProjectPropertyElement
propertyElement = project.Xml.AddProperty("p", "v0");
898
ProjectPropertyElement
propertyElement = project.Xml.AddProperty("p1", "v0");
964
ProjectPropertyElement
propertyElement = project.Xml.AddProperty("pp", "vv");
993
ProjectPropertyElement
propertyElement = project.Xml.AddProperty("pp", "vv");
1029
ProjectPropertyElement
propertyElement = project.Xml.AddProperty("p", "v0");
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
926
public static void Verify(
ProjectPropertyElement
viewXml,
ProjectPropertyElement
realXml, ValidationContext context = null)
ObjectModelRemoting\Helpers\ViewValidation.cs (1)
229
if (VerifyCheckType<
ProjectPropertyElement
>(view, real, context, Verify))
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (7)
93
xmlPair.Add2NewChildrenWithVerify<
ProjectPropertyElement
>("NewProp", (p, pn) => p.AddProperty(pn, $"Value{pn}"), (prop, pn) => prop.Name == pn, out var itemProp1, out var itemProp2);
119
xmlPair.CreateWithVerify<
ProjectPropertyElement
>((p) => p.CreatePropertyElement("name"));
717
var prop = propGrp.AddNewChaildWithVerify<
ProjectPropertyElement
>(ObjectType.View, "prop", (pg, n) => pg.AddProperty(n, $"value{n}"), (p, n) => p.Name == n);
734
propGrp.Add2NewChildrenWithVerify<
ProjectPropertyElement
>("prop", (pg, n) => pg.AddProperty(n, $"value{n}"), (p, n) => p.Name == n, out var prop1, out var prop2);
738
propGrp.Add2NewChildrenWithVerify<
ProjectPropertyElement
>("setnewprop", (pg, n) => pg.SetProperty(n, $"value{n}"), (p, n) => p.Name == n, out var setNewProp1, out var setNewProp2);
742
propGrp.Add2NewChildrenWithVerify<
ProjectPropertyElement
>("prop" /*same name*/, (pg, n) => pg.AddProperty(n, $"value2{n}"), (p, n) => p.Value == $"value2{n}", out var prop1_2, out var prop2_2);
748
propGrp.Add2NewChildrenWithVerify<
ProjectPropertyElement
>("setnewprop" /*same name*/, (pg, n) => pg.SetProperty(n, $"value2{n}"), (p, n) => p.Value == $"value2{n}", out var setNewProp1_2, out var setNewProp2_2);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectPropertyElementLink.cs (2)
14
public
ProjectPropertyElement
PropertyXml => (
ProjectPropertyElement
)Source;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (2)
281
public override
ProjectPropertyElement
CreatePropertyElement(string name)
283
return (
ProjectPropertyElement
)this.Proxy.CreatePropertyElement(name).Import(this.Linker);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (1)
63
ElementInfo.New<
ProjectPropertyElement
, MockProjectPropertyElementLinkRemoter>(),
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectPropertyLink.cs (2)
48
public override
ProjectPropertyElement
Xml => (
ProjectPropertyElement
)this.Proxy.Xml.Import(this.Linker);
Microsoft.Build.Engine.UnitTests (1)
Evaluation\Evaluator_Tests.cs (1)
1453
ProjectPropertyElement
xml1 = project.Xml.Properties.First();