37 references to SetProperty
Microsoft.Build (1)
BackEnd\Shared\BuildRequestConfiguration.cs (1)
397
_project.
SetProperty
(property.Name, ((IProperty)property).EvaluatedValueEscaped);
Microsoft.Build.Engine.OM.UnitTests (17)
Instance\ProjectInstance_Tests.cs (16)
207
instance.
SetProperty
("p", "p2");
212
instance.
SetProperty
("p", "");
240
ProjectPropertyInstance newProperty = first.
SetProperty
("p1", "v1b");
671
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.
SetProperty
("a", "b"); });
836
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.
SetProperty
("newproperty", "v2"); });
848
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.
SetProperty
("g", "gv2"); });
860
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.
SetProperty
("username", "someone_else_here"); });
873
instance.
SetProperty
("p", "pnew");
876
instance.
SetProperty
("g", "gnew");
877
instance.
SetProperty
("username", "someone_else_here");
961
instance.
SetProperty
("p", "pnew");
964
instance.
SetProperty
("g", "gnew");
965
instance.
SetProperty
("username", "someone_else_here");
978
instance.
SetProperty
("p", "pnew");
981
instance.
SetProperty
("g", "gnew");
982
instance.
SetProperty
("username", "someone_else_here");
Instance\ProjectPropertyInstance_Tests.cs (1)
105
ProjectPropertyInstance property = projectInstance.
SetProperty
("p", "v1");
Microsoft.Build.Engine.UnitTests (9)
BackEnd\BuildManager_Tests.cs (5)
2268
instance.
SetProperty
("VirtualProp", "overridden");
2269
instance.
SetProperty
("NewProp", "new");
2318
instance.
SetProperty
("VirtualProp", "overridden");
2319
instance.
SetProperty
("Unmodified", "changed");
3738
p2pInstance.
SetProperty
("P", newPropertyValue);
Collections\OMcollections_tests.cs (1)
313
ProjectPropertyInstance property = projectInstance.
SetProperty
(name, value);
Construction\SolutionProjectGenerator_Tests.cs (2)
1767
msbuildProject.
SetProperty
("TargetFrameworkVersion", "v2.0");
1795
msbuildProject.
SetProperty
("TargetFrameworkVersion", "v4.0");
Instance\ProjectPropertyInstance_Internal_Tests.cs (1)
96
ProjectPropertyInstance property = projectInstance.
SetProperty
("p", "v1");
Microsoft.Build.Tasks.UnitTests (10)
ResolveSDKReference_Tests.cs (10)
3813
project.
SetProperty
("SDKReferenceDirectoryRoot", testDirectoryRoot);
3814
project.
SetProperty
("SDKReferenceRegistryRoot", "");
3956
project.
SetProperty
("SDKReferenceDirectoryRoot", testDirectoryRoot);
3957
project.
SetProperty
("SDKReferenceRegistryRoot", "");
4065
project.
SetProperty
("SDKReferenceDirectoryRoot", testDirectoryRoot);
4066
project.
SetProperty
("SDKReferenceRegistryRoot", "");
4162
project.
SetProperty
("SDKReferenceDirectoryRoot", testDirectoryRoot);
4163
project.
SetProperty
("SDKReferenceRegistryRoot", "");
4331
project.
SetProperty
("SDKReferenceDirectoryRoot", testDirectoryRoot);
4332
project.
SetProperty
("SDKReferenceRegistryRoot", "");