37 references to SetProperty
Microsoft.Build (1)
BackEnd\Shared\BuildRequestConfiguration.cs (1)
407
_project.
SetProperty
(property.Name, ((IProperty)property).EvaluatedValueEscaped);
Microsoft.Build.Engine.OM.UnitTests (17)
Instance\ProjectInstance_Tests.cs (16)
206
instance.
SetProperty
("p", "p2");
211
instance.
SetProperty
("p", "");
239
ProjectPropertyInstance newProperty = first.
SetProperty
("p1", "v1b");
670
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.
SetProperty
("a", "b"); });
835
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.
SetProperty
("newproperty", "v2"); });
847
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.
SetProperty
("g", "gv2"); });
859
Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.
SetProperty
("username", "someone_else_here"); });
872
instance.
SetProperty
("p", "pnew");
875
instance.
SetProperty
("g", "gnew");
876
instance.
SetProperty
("username", "someone_else_here");
960
instance.
SetProperty
("p", "pnew");
963
instance.
SetProperty
("g", "gnew");
964
instance.
SetProperty
("username", "someone_else_here");
977
instance.
SetProperty
("p", "pnew");
980
instance.
SetProperty
("g", "gnew");
981
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)
2267
instance.
SetProperty
("VirtualProp", "overridden");
2268
instance.
SetProperty
("NewProp", "new");
2317
instance.
SetProperty
("VirtualProp", "overridden");
2318
instance.
SetProperty
("Unmodified", "changed");
3737
p2pInstance.
SetProperty
("P", newPropertyValue);
Collections\OMcollections_tests.cs (1)
312
ProjectPropertyInstance property = projectInstance.
SetProperty
(name, value);
Construction\SolutionProjectGenerator_Tests.cs (2)
1830
msbuildProject.
SetProperty
("TargetFrameworkVersion", "v2.0");
1858
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)
3812
project.
SetProperty
("SDKReferenceDirectoryRoot", testDirectoryRoot);
3813
project.
SetProperty
("SDKReferenceRegistryRoot", "");
3955
project.
SetProperty
("SDKReferenceDirectoryRoot", testDirectoryRoot);
3956
project.
SetProperty
("SDKReferenceRegistryRoot", "");
4064
project.
SetProperty
("SDKReferenceDirectoryRoot", testDirectoryRoot);
4065
project.
SetProperty
("SDKReferenceRegistryRoot", "");
4161
project.
SetProperty
("SDKReferenceDirectoryRoot", testDirectoryRoot);
4162
project.
SetProperty
("SDKReferenceRegistryRoot", "");
4330
project.
SetProperty
("SDKReferenceDirectoryRoot", testDirectoryRoot);
4331
project.
SetProperty
("SDKReferenceRegistryRoot", "");