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