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