65 references to AddProperty
Microsoft.Build (2)
Definition\Project.cs (1)
2944ProjectPropertyElement propertyElement = Xml.AddProperty(name, unevaluatedValue);
Definition\ProjectProperty.cs (1)
601_project.Xml.AddProperty(_name, value);
Microsoft.Build.Engine.OM.UnitTests (42)
Construction\ConstructionEditing_Tests.cs (17)
2120ProjectPropertyElement property = project.AddProperty("p", "v1"); 2142project.AddProperty("p", "v1"); 2165project.AddProperty("p", "v1"); 2186ProjectPropertyElement property1 = project.AddProperty("p", "v1"); 2188ProjectPropertyElement property2 = project.AddProperty("p", "v2"); 2209ProjectPropertyElement property1 = project.AddProperty("p", "v1"); 2212project.AddProperty("p", "v2"); 2233ProjectPropertyElement property1 = project.AddProperty("p", "v1"); 2236project.AddProperty("p", "v2"); 2260project.AddProperty("MSBuildToolsPATH", "v"); 2272project.AddProperty("ItemGroup", "v"); 2284project.AddProperty("@#$@#", "v"); 2591var element = ProjectRootElement.Create().AddProperty("p", "v1"); 2602var element = ProjectRootElement.Create().AddProperty("p", "v1"); 2938var element = ProjectRootElement.Create().AddProperty("p", "v1"); 2949var element = ProjectRootElement.Create().AddProperty("p", "v1"); 3234p.Xml.AddProperty("propName", "propValue");
Construction\ProjectImportElement_Tests.cs (3)
164importProject1.AddProperty("p", "v1"); 169importProject2.AddProperty("p", "v2"); 208importProject.AddProperty("p", "v1");
Construction\ProjectPropertyElement_Tests.cs (2)
175ProjectPropertyElement property = project.AddProperty("p", "v1"); 257ProjectPropertyElement property = project.AddProperty("p", "v1");
Construction\ProjectRootElement_Tests.cs (1)
1607projectElement.AddProperty("P", "v");
Definition\Project_Tests.cs (17)
368xml.AddProperty("p", "1"); 370xml.AddProperty("q", "$(p)"); 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"); 1406import.AddProperty("p", "v"); 2552one.AddProperty("p", "1"); 2554two.AddProperty("p", "2"); 2557zero.AddProperty("p", "0"); 2564three.AddProperty("p", "3"); 2568four.AddProperty("p", "4"); 2605one.AddProperty("p", "1"); 2609two.AddProperty("p", "2"); 2612zero.AddProperty("p", "0"); 4268project.Xml.AddProperty(PropertyName, PropertyValue);
Definition\ProjectItemDefinition_Tests.cs (1)
60xml.AddProperty("p", "v");
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (1)
93xmlPair.Add2NewChildrenWithVerify<ProjectPropertyElement>("NewProp", (p, pn) => p.AddProperty(pn, $"Value{pn}"), (prop, pn) => prop.Name == pn, out var itemProp1, out var itemProp2);
Microsoft.Build.Engine.UnitTests (21)
Evaluation\Evaluator_Tests.cs (3)
2063import.AddProperty("p", "0").Condition = "false"; 2064import.AddProperty("p", "1"); 2065import.AddProperty("q", "2");
Evaluation\Preprocessor_Tests.cs (16)
214xml2.AddProperty("p", "v2"); 259xml1.AddProperty("p", "v1"); 262xml2.AddProperty("p", "v2"); 294xml1.AddProperty("p", "v"); 414xml1.AddProperty("p", "v1"); 417xml2.AddProperty("p", "v2"); 467xml1.AddProperty("p", "v1"); 473xml2.AddProperty("p", "v2"); 475xml3.AddProperty("p", "v3"); 665xml1.AddProperty("p", "v1"); 669xml2.AddProperty("p", "v2"); 714xml1.AddProperty("p", "v1"); 718xml2.AddProperty("p", "v2"); 722xml3.AddProperty("p", "v3"); 1229xml1.AddProperty("Import", "p2"); 1230xml2.AddProperty("Import", "p3");
Graph\ProjectGraph_Tests.cs (2)
829project2Xml.AddProperty("ShouldUnsetParentConfigurationAndPlatform", "true"); 835project3Xml.AddProperty("ShouldUnsetParentConfigurationAndPlatform", "false");