49 references to SetProperty
Microsoft.Build (13)
BackEnd\Shared\BuildRequestConfiguration.cs (1)
397
_project.
SetProperty
(property.Name, ((IProperty)property).EvaluatedValueEscaped);
Construction\Solution\SolutionProjectGenerator.cs (12)
1685
metaprojectInstance.
SetProperty
(GenerateSafePropertyName(project, "AspNetVirtualPath"), EscapingUtilities.Escape(aspNetCompilerParameters.aspNetVirtualPath));
1686
metaprojectInstance.
SetProperty
(GenerateSafePropertyName(project, "AspNetPhysicalPath"), EscapingUtilities.Escape(aspNetCompilerParameters.aspNetPhysicalPath));
1687
metaprojectInstance.
SetProperty
(GenerateSafePropertyName(project, "AspNetTargetPath"), EscapingUtilities.Escape(aspNetCompilerParameters.aspNetTargetPath));
1688
metaprojectInstance.
SetProperty
(GenerateSafePropertyName(project, "AspNetForce"), EscapingUtilities.Escape(aspNetCompilerParameters.aspNetForce));
1689
metaprojectInstance.
SetProperty
(GenerateSafePropertyName(project, "AspNetUpdateable"), EscapingUtilities.Escape(aspNetCompilerParameters.aspNetUpdateable));
1690
metaprojectInstance.
SetProperty
(GenerateSafePropertyName(project, "AspNetDebug"), EscapingUtilities.Escape(aspNetCompilerParameters.aspNetDebug));
1691
metaprojectInstance.
SetProperty
(GenerateSafePropertyName(project, "AspNetKeyFile"), EscapingUtilities.Escape(aspNetCompilerParameters.aspNetKeyFile));
1692
metaprojectInstance.
SetProperty
(GenerateSafePropertyName(project, "AspNetKeyContainer"), EscapingUtilities.Escape(aspNetCompilerParameters.aspNetKeyContainer));
1693
metaprojectInstance.
SetProperty
(GenerateSafePropertyName(project, "AspNetDelaySign"), EscapingUtilities.Escape(aspNetCompilerParameters.aspNetDelaySign));
1694
metaprojectInstance.
SetProperty
(GenerateSafePropertyName(project, "AspNetAPTCA"), EscapingUtilities.Escape(aspNetCompilerParameters.aspNetAPTCA));
1695
metaprojectInstance.
SetProperty
(GenerateSafePropertyName(project, "AspNetFixedNames"), EscapingUtilities.Escape(aspNetCompilerParameters.aspNetFixedNames));
1745
metaprojectInstance.
SetProperty
(
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", "");