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