62 references to SetProperty
Microsoft.Build (1)
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
174
/// Facilitate remoting the <see cref="Project.
SetProperty
"/>.
Microsoft.Build.Engine.OM.UnitTests (51)
Definition\DefinitionEditing_Tests.cs (23)
266
project.
SetProperty
("p", "v1");
830
project.
SetProperty
("p", "xxx");
884
project.
SetProperty
("p", "v1");
911
project.
SetProperty
("p", "v1");
1059
project.
SetProperty
("p", "v1");
1475
project.
SetProperty
("p1", "v1");
1500
project.
SetProperty
("p1", "v%5E1");
1530
project.
SetProperty
("OutDir", "foo"); // should not throw
1543
project.
SetProperty
("p0", "v0");
1544
project.
SetProperty
("p1", "$(p0)");
1560
project.
SetProperty
("p1", "x@(i)x%(m)x");
1574
project.
SetProperty
("p", "v1");
1578
project.
SetProperty
("p", "v1");
1592
var property = project.
SetProperty
("p", "v1");
1607
var property = project.
SetProperty
("p", "v1");
1782
var property = project.
SetProperty
("p", "v1");
1784
project.
SetProperty
("p", "v2");
1801
var property = project.
SetProperty
("p", "v1");
1803
project.
SetProperty
("p", "v2");
1821
project.
SetProperty
("p1", "v1");
1843
project.
SetProperty
("p1", "v1");
1844
project.
SetProperty
("p2", "v2");
2190
project.
SetProperty
("p", "v1");
Definition\Project_Tests.cs (5)
922
project.
SetProperty
("p", "v2");
932
project.
SetProperty
("computername", "v1");
951
project.
SetProperty
("msbuildprojectdirectory", "v1");
1348
project.
SetProperty
("p", "v");
1635
project.
SetProperty
("p", "v");
Definition\ProjectCollection_Tests.cs (9)
1269
project.
SetProperty
("a", "1");
1278
project.
SetProperty
("a", "%28x86%29");
1287
project.
SetProperty
("a", "1");
1296
project.
SetProperty
("a", "1");
1305
project.
SetProperty
("a", "2");
1315
project.
SetProperty
("a", "1");
1381
project.
SetProperty
("z", "y");
1420
project.
SetProperty
("someProp", "someValue");
1437
project.
SetProperty
("someProp", "someValue2");
Definition\ProjectMetadata_Tests.cs (1)
110
project.
SetProperty
("p", "p0");
Definition\ProjectProperty_Tests.cs (9)
30
ProjectProperty property = project.
SetProperty
("p", "v");
87
ProjectProperty property = project.
SetProperty
("p", "v1");
104
ProjectProperty property = project.
SetProperty
("p", "v1");
122
ProjectProperty property = project.
SetProperty
("p", "v1");
225
project.
SetProperty
("p0", "v0");
226
ProjectProperty property = project.
SetProperty
("p1", "v1");
244
project.
SetProperty
("p0", "v0");
245
ProjectProperty property = project.
SetProperty
("p1", "v1");
267
import.
SetProperty
("p", "v0");
Definition\ProtectImports_Tests.cs (1)
152
project.
SetProperty
(PropertyName, NewValue);
Instance\ProjectPropertyInstance_Tests.cs (1)
92
project.
SetProperty
("p", "v1");
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (1)
84
var added = toAdd.
SetProperty
(name, unevaluatedValue);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (1)
113
=> this.OwningCollection.Export<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.
SetProperty
(name, unevaluatedValue));
Microsoft.Build.Engine.UnitTests (10)
BackEnd\BuildManager_Tests.cs (2)
2058
project2.
SetProperty
("Bar", "FOO");
3884
project.
SetProperty
("ImportIt", "false");
Definition\ItemDefinitionGroup_Tests.cs (2)
1731
p.
SetProperty
("BuildFlavor", "ret");
1739
p.
SetProperty
("BuildFlavor", "chk");
Evaluation\EvaluationLogging_Tests.cs (1)
97
project.
SetProperty
("aProperty", "Value");
Evaluation\Evaluator_Tests.cs (2)
1501
ProjectProperty property = project.
SetProperty
("outdir", "x"); // Outdir is set in microsoft.common.targets
2142
project.
SetProperty
("p", "1");
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (1)
413
project.
SetProperty
("MSBuildExtensionsPath", extnDir2);
Evaluation\Preprocessor_Tests.cs (2)
56
project.
SetProperty
("p", "v1");
793
project.
SetProperty
("p", "<![CDATA[<sender>John Smith</sender>]]>");