239 references to Set
Microsoft.Build (43)
BackEnd\BuildManager\BuildRequestData.cs (1)
153GlobalPropertiesDictionary.Set(ProjectPropertyInstance.Create(propertyPair.Key, propertyPair.Value));
BackEnd\Components\Logging\ProjectLoggingContext.cs (1)
236projectPropertiesToSerialize.Set(instance);
BackEnd\Components\RequestBuilder\Lookup.cs (1)
634PrimaryPropertySets.Set(property);
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1190propertyDictionaries[i].Set(ProjectPropertyInstance.Create(entry.Key as string, entry.Value as string, _taskLocation));
Collections\PropertyDictionary.cs (5)
72Set(element); 92Set(element); 204Set(value); 356Set(value); 496Set(property);
Definition\Project.cs (7)
2969_data.GlobalPropertiesDictionary.Set(ProjectPropertyInstance.Create(name, escapedValue)); 2970_data.Properties.Set(ProjectProperty.Create(Owner, name, escapedValue, isGlobalProperty: true, mayBeReserved: false, loggingContext: null)); 3774globalPropertiesCollection.Set(clone); 3786globalPropertiesCollection.Set(ProjectPropertyInstance.Create(pair.Key, subToolsetVersion)); 3790globalPropertiesCollection.Set(ProjectPropertyInstance.Create(pair.Key, pair.Value)); 4443Properties.Set(property); 4457Properties.Set(property);
Definition\ProjectCollection.cs (3)
348_globalProperties.Set(ProjectPropertyInstance.Create(pair.Key, pair.Value)); 878clone.Set(property.DeepClone()); 1448_globalProperties.Set(ProjectPropertyInstance.Create(name, value));
Definition\ProjectItem.cs (4)
542_directMetadata.Set(metadatum); 614_directMetadata.Set(metadatum); 623siblingItem._directMetadata.Set(metadatum.DeepClone()); 1064directMetadataClone.Set(metadatum.DeepClone());
Definition\ProjectItemDefinition.cs (2)
183_metadata.Set(metadatum); 199_metadata.Set(metadatum);
Definition\Toolset.cs (2)
257_properties.Set(ProjectPropertyInstance.Create(keyValuePair.Key, keyValuePair.Value, true)); 954propertyBag.Set(ProjectPropertyInstance.Create(Constants.SubToolsetVersionPropertyName, subToolsetVersion));
Definition\ToolsetReader.cs (1)
602propertyGroup.Set(ProjectPropertyInstance.Create(property.Name, EscapingUtilities.UnescapeAll(property.Value), true /* may be reserved */, false /* not immutable */));
Instance\ProjectInstance.cs (15)
392_globalProperties.Set(ProjectPropertyInstance.Create(property.Key, property.Value)); 715_properties.Set(property.DeepClone(_isImmutable)); 729_globalProperties.Set(globalProperty.DeepClone(_isImmutable)); 737_environmentVariableProperties.Set(environmentProperty.DeepClone(_isImmutable)); 785_properties.Set(regularProperty.DeepClone(isImmutable: true)); 791_globalProperties.Set(globalProperty.DeepClone(isImmutable: true)); 797_environmentVariableProperties.Set(environmentProperty.DeepClone(isImmutable: true)); 1798_properties.Set(property); 1811_properties.Set(property); 1930_properties.Set(property); 3153_globalProperties.Set(ProjectPropertyInstance.Create(globalProperty.Key, explicitSubToolsetVersion, false /* may not be reserved */, _isImmutable)); 3157_globalProperties.Set(ProjectPropertyInstance.Create(globalProperty.Key, globalProperty.Value, false /* may not be reserved */, _isImmutable)); 3269_environmentVariableProperties.Set(environmentProperty.DeepClone()); 3282_globalProperties.Set(globalProperty.DeepClone()); 3452_properties.Set(instance);
Microsoft.Build.Engine.UnitTests (196)
BackEnd\BatchingEngine_Tests.cs (2)
53properties.Set(ProjectPropertyInstance.Create("UnitTests", "unittests.foo")); 54properties.Set(ProjectPropertyInstance.Create("OBJ", "obj"));
BackEnd\BuildRequestConfiguration_Tests.cs (3)
231props.Set(ProjectPropertyInstance.Create("prop1", "value1")); 244properties.Set(ProjectPropertyInstance.Create("this", "that")); 245properties.Set(ProjectPropertyInstance.Create("foo", "bar"));
BackEnd\IntrinsicTask_Tests.cs (3)
747properties.Set(ProjectPropertyInstance.Create("p0", " v0 ")); 3905properties.Set(ProjectPropertyInstance.Create("p0", "v0")); 3912pg.Set(ProjectPropertyInstance.Create("p0", "v0"));
BackEnd\Lookup_Tests.cs (2)
1212group.Set(property); 1246group.Set(ProjectPropertyInstance.Create("p1", "v1"));
BackEnd\TaskRegistry_Tests.cs (4)
2207pg.Set(ProjectPropertyInstance.Create("Property" + i, "Value" + i)); 2210pg.Set(ProjectPropertyInstance.Create("TrueString", "True")); 2211pg.Set(ProjectPropertyInstance.Create("FalseString", "False")); 2212pg.Set(ProjectPropertyInstance.Create("ItaskItem", "Microsoft.Build.Framework.ItaskItem[]"));
Collections\MSBuildNameIgnoreCaseComparer_Tests.cs (1)
49dictionary.Set(p);
Collections\OMcollections_tests.cs (10)
41properties.Set(p1); 42properties.Set(p2); 43properties.Set(p3); 44properties.Set(p1); 45properties.Set(p4); 74properties.Set(p1); 75properties.Set(p2); 76properties.Set(p3); 77properties.Set(p1); 78properties.Set(p4);
Definition\Toolset_Tests.cs (12)
94buildProperties.Set(ProjectPropertyInstance.Create("a", "a1")); 97environmentProperties.Set(ProjectPropertyInstance.Create("b", "b1")); 100globalProperties.Set(ProjectPropertyInstance.Create("c", "c1")); 103subToolsetProperties.Set(ProjectPropertyInstance.Create("d", "d1")); 517subToolset12Properties.Set(ProjectPropertyInstance.Create("d", "d4")); 518subToolset12Properties.Set(ProjectPropertyInstance.Create("e", "e5")); 522subToolset11Properties.Set(ProjectPropertyInstance.Create("b", "b2")); 523subToolset11Properties.Set(ProjectPropertyInstance.Create("c", "c2")); 527fakeSubToolsetProperties.Set(ProjectPropertyInstance.Create("a", "a3")); 528fakeSubToolsetProperties.Set(ProjectPropertyInstance.Create("c", "c3")); 532subToolset13Properties.Set(ProjectPropertyInstance.Create("f", "f6")); 533subToolset13Properties.Set(ProjectPropertyInstance.Create("g", "g7"));
Evaluation\Evaluator_Tests.cs (6)
4466propertyBag.Set(ProjectPropertyInstance.Create("TargetOSFamily", "*")); 4486propertyBag.Set(ProjectPropertyInstance.Create("TargetOSFamily", "3")); 5136subToolset11Properties.Set(ProjectPropertyInstance.Create("b", "b2")); 5137subToolset11Properties.Set(ProjectPropertyInstance.Create("c", "c2")); 5141fakeSubToolsetProperties.Set(ProjectPropertyInstance.Create("a", "a3")); 5142fakeSubToolsetProperties.Set(ProjectPropertyInstance.Create("c", "c3"));
Evaluation\Expander_Tests.cs (97)
117pg.Set(ProjectPropertyInstance.Create("a", "aaa")); 118pg.Set(ProjectPropertyInstance.Create("b", "bbb")); 119pg.Set(ProjectPropertyInstance.Create("c", "cc;dd")); 141pg.Set(ProjectPropertyInstance.Create("a", "aaa")); 142pg.Set(ProjectPropertyInstance.Create("b", "bbb")); 143pg.Set(ProjectPropertyInstance.Create("c", "cc;dd")); 749pg.Set(ProjectPropertyInstance.Create("p", "v0")); 750pg.Set(ProjectPropertyInstance.Create("p", "v1")); 751pg.Set(ProjectPropertyInstance.Create("Val", "2")); 752pg.Set(ProjectPropertyInstance.Create("a", "filename")); 798pg.Set(ProjectPropertyInstance.Create("p", "v0")); 799pg.Set(ProjectPropertyInstance.Create("p", "v1")); 1364pg.Set(ProjectPropertyInstance.Create("Gee_Aych_Ayee", "ghi")); 1365pg.Set(ProjectPropertyInstance.Create("OutputPath", @"\jk ; l\mno%253bpqr\stu")); 1366pg.Set(ProjectPropertyInstance.Create("TargetPath", "@(IntermediateAssembly->'%(RelativeDir)')")); 1573pg.Set(ProjectPropertyInstance.Create("ManySpacesProperty", manySpaces)); 2035pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2051pg.Set(ProjectPropertyInstance.Create("FileName", " foo.ext ")); 2067pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2083pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2099pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2115pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2131pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2147pg.Set(ProjectPropertyInstance.Create("RootPath", Path.Combine(s_rootPathPrefix, "this", "is", "the", "root"))); 2148pg.Set(ProjectPropertyInstance.Create("MyPath", Path.Combine(s_rootPathPrefix, "this", "is", "the", "root", "my", "project", "is", "here.proj"))); 2164pg.Set(ProjectPropertyInstance.Create("Value", "3")); 2165pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2181pg.Set(ProjectPropertyInstance.Create("PathRoot", Path.Combine(s_rootPathPrefix, "goo"))); 2182pg.Set(ProjectPropertyInstance.Create("PathRoot2", Path.Combine(s_rootPathPrefix, "goop") + Path.DirectorySeparatorChar)); 2199pg.Set(ProjectPropertyInstance.Create("Value", "3")); 2200pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2217pg.Set(ProjectPropertyInstance.Create("Value", "3")); 2218pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2233pg.Set(ProjectPropertyInstance.Create("Value", "12345")); 2234pg.Set(ProjectPropertyInstance.Create("SomeStuff", "1234567890")); 2265pg.Set(ProjectPropertyInstance.Create("List", "A-B-C-D")); 2299pg.Set(ProjectPropertyInstance.Create("List", "A-B-C-D")); 2300pg.Set(ProjectPropertyInstance.Create("Splitter", "-")); 2316pg.Set(ProjectPropertyInstance.Create("PathRoot", Path.Combine(s_rootPathPrefix, "goo"))); 2317pg.Set(ProjectPropertyInstance.Create("PathRoot2", Path.Combine(s_rootPathPrefix, "goop") + Path.DirectorySeparatorChar)); 2352pg.Set(ProjectPropertyInstance.Create("Value", "3")); 2353pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2370pg.Set(ProjectPropertyInstance.Create("Value", "3")); 2371pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2387pg.Set(ProjectPropertyInstance.Create("Value", "3")); 2388pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2404pg.Set(ProjectPropertyInstance.Create("Value", "3")); 2405pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2422pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2438pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2454pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 2498pg.Set(ProjectPropertyInstance.Create("System", "The System Namespace")); 2516pg.Set(ProjectPropertyInstance.Create("ParentPath", Path.Combine(s_rootPathPrefix, "abc", "def"))); 2517pg.Set(ProjectPropertyInstance.Create("FilePath", Path.Combine(s_rootPathPrefix, "abc", "def", "foo.cpp"))); 2533pg.Set(ProjectPropertyInstance.Create("Drive", s_rootPathPrefix)); 2534pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo", "file.txt"))); 2550pg.Set(ProjectPropertyInstance.Create("ver1", @"1.2.3.4")); 2573pg.Set(ProjectPropertyInstance.Create("ver1", @"1.2.3.4")); 2574pg.Set(ProjectPropertyInstance.Create("ver2", @"2.2.3.4")); 2679pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo", "file.txt"))); 2695pg.Set(ProjectPropertyInstance.Create("File", "foo goo" + Path.DirectorySeparatorChar + "file.txt")); 2713pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo bar", "baz.txt"))); 2731pg.Set(ProjectPropertyInstance.Create("File", Path.Combine("foo bar", "baz.txt"))); 2794pg.Set(ProjectPropertyInstance.Create("File", "foo" + Path.DirectorySeparatorChar + "file.txt")); 2812pg.Set(ProjectPropertyInstance.Create("File", "foo" + Path.DirectorySeparatorChar + "file.txt")); 3392pg.Set(ProjectPropertyInstance.Create("StartingDirectory", directoryStart)); 3393pg.Set(ProjectPropertyInstance.Create("FileToFind", tempFile)); 3427pg.Set(ProjectPropertyInstance.Create("FileToFind", Path.GetFileName(fileToFind))); 3470pg.Set(ProjectPropertyInstance.Create("FileWithPath", fileWithPath)); 3798pg.Set(ProjectPropertyInstance.Create("SomeStuff", "This IS SOME STUff")); 3815pg.Set(ProjectPropertyInstance.Create("SomeProperty", "Value")); 3839pg.Set(ProjectPropertyInstance.Create("SomeProperty", "Value")); 3863pg.Set(ProjectPropertyInstance.Create("SomeProperty", "Value")); 3887pg.Set(ProjectPropertyInstance.Create("SomeProperty", "Value")); 3916pg.Set(ProjectPropertyInstance.Create("SomePath", Path.Combine(s_rootPathPrefix, "some", "path"))); 4066pg.Set(ProjectPropertyInstance.Create("File", @"foo\file.txt")); 4068pg.Set(ProjectPropertyInstance.Create("a", "no")); 4069pg.Set(ProjectPropertyInstance.Create("b", "true")); 4070pg.Set(ProjectPropertyInstance.Create("c", "1")); 4071pg.Set(ProjectPropertyInstance.Create("position", "4")); 4072pg.Set(ProjectPropertyInstance.Create("d", "xxx")); 4073pg.Set(ProjectPropertyInstance.Create("e", "xxx")); 4074pg.Set(ProjectPropertyInstance.Create("and", "and")); 4075pg.Set(ProjectPropertyInstance.Create("a_semi_b", "a;b")); 4076pg.Set(ProjectPropertyInstance.Create("a_apos_b", "a'b")); 4077pg.Set(ProjectPropertyInstance.Create("foo_apos_foo", "foo'foo")); 4078pg.Set(ProjectPropertyInstance.Create("a_escapedsemi_b", "a%3bb")); 4079pg.Set(ProjectPropertyInstance.Create("a_escapedapos_b", "a%27b")); 4080pg.Set(ProjectPropertyInstance.Create("has_trailing_slash", @"foo\")); 4081pg.Set(ProjectPropertyInstance.Create("emptystring", @"")); 4082pg.Set(ProjectPropertyInstance.Create("space", @" ")); 4083pg.Set(ProjectPropertyInstance.Create("listofthings", @"a;b;c;d;e;f;g;h;i;j;k;l")); 4084pg.Set(ProjectPropertyInstance.Create("input", @"EXPORT a")); 4085pg.Set(ProjectPropertyInstance.Create("propertycontainingnullasastring", @"null")); 4348pg.Set(ProjectPropertyInstance.Create("SomeProperty", path)); 4374pg.Set(ProjectPropertyInstance.Create("SomeProperty", "6C8546D5297C424F962201B0E0E9F142")); 4747properties.Set(ProjectPropertyInstance.Create(propertyName, propertyValue));
ExpressionTree_Tests.cs (43)
140propertyBag.Set(ProjectPropertyInstance.Create("foo", "true")); 141propertyBag.Set(ProjectPropertyInstance.Create("bar", "yes")); 142propertyBag.Set(ProjectPropertyInstance.Create("one", "1")); 143propertyBag.Set(ProjectPropertyInstance.Create("onepointzero", "1.0")); 144propertyBag.Set(ProjectPropertyInstance.Create("two", "2")); 145propertyBag.Set(ProjectPropertyInstance.Create("simple", "simplestring")); 146propertyBag.Set(ProjectPropertyInstance.Create("complex", "This is a complex string")); 147propertyBag.Set(ProjectPropertyInstance.Create("c1", "Another (complex) one.")); 148propertyBag.Set(ProjectPropertyInstance.Create("c2", "Another (complex) one.")); 149propertyBag.Set(ProjectPropertyInstance.Create("x86", "x86")); 150propertyBag.Set(ProjectPropertyInstance.Create("no", "no")); 220propertyBag.Set(ProjectPropertyInstance.Create("foo", "true")); 221propertyBag.Set(ProjectPropertyInstance.Create("bar", "yes")); 222propertyBag.Set(ProjectPropertyInstance.Create("one", "1")); 223propertyBag.Set(ProjectPropertyInstance.Create("onepointzero", "1.0")); 224propertyBag.Set(ProjectPropertyInstance.Create("two", "2")); 225propertyBag.Set(ProjectPropertyInstance.Create("simple", "simplestring")); 226propertyBag.Set(ProjectPropertyInstance.Create("complex", "This is a complex string")); 227propertyBag.Set(ProjectPropertyInstance.Create("c1", "Another (complex) one.")); 228propertyBag.Set(ProjectPropertyInstance.Create("c2", "Another (complex) one.")); 229propertyBag.Set(ProjectPropertyInstance.Create("TestQuote", "Contains'Quote'")); 230propertyBag.Set(ProjectPropertyInstance.Create("AnotherTestQuote", "Here's Johnny!")); 231propertyBag.Set(ProjectPropertyInstance.Create("Atsign", "Test the @ replacement")); 255propertyBag.Set(ProjectPropertyInstance.Create("foo", "true")); 256propertyBag.Set(ProjectPropertyInstance.Create("bar", "yes")); 257propertyBag.Set(ProjectPropertyInstance.Create("one", "1")); 258propertyBag.Set(ProjectPropertyInstance.Create("onepointzero", "1.0")); 259propertyBag.Set(ProjectPropertyInstance.Create("two", "2")); 260propertyBag.Set(ProjectPropertyInstance.Create("simple", "simplestring")); 261propertyBag.Set(ProjectPropertyInstance.Create("complex", "This is a complex string")); 262propertyBag.Set(ProjectPropertyInstance.Create("c1", "Another (complex) one.")); 263propertyBag.Set(ProjectPropertyInstance.Create("c2", "Another (complex) one.")); 305propertyBag.Set(ProjectPropertyInstance.Create("foo", "true")); 306propertyBag.Set(ProjectPropertyInstance.Create("bar", "yes")); 307propertyBag.Set(ProjectPropertyInstance.Create("one", "1")); 308propertyBag.Set(ProjectPropertyInstance.Create("onepointzero", "1.0")); 309propertyBag.Set(ProjectPropertyInstance.Create("two", "2")); 310propertyBag.Set(ProjectPropertyInstance.Create("simple", "simplestring")); 311propertyBag.Set(ProjectPropertyInstance.Create("complex", "This is a complex string")); 312propertyBag.Set(ProjectPropertyInstance.Create("c1", "Another (complex) one.")); 313propertyBag.Set(ProjectPropertyInstance.Create("c2", "Another (complex) one.")); 416propertyBag.Set(ProjectPropertyInstance.Create("foo", "4")); 417propertyBag.Set(ProjectPropertyInstance.Create("bar", "32"));
ExpressionTreeExpression_Tests.cs (13)
386propertyBag.Set(ProjectPropertyInstance.Create("a", "no")); 387propertyBag.Set(ProjectPropertyInstance.Create("b", "true")); 388propertyBag.Set(ProjectPropertyInstance.Create("c", "1")); 389propertyBag.Set(ProjectPropertyInstance.Create("d", "xxx")); 390propertyBag.Set(ProjectPropertyInstance.Create("e", "xxx")); 391propertyBag.Set(ProjectPropertyInstance.Create("f", "1.9.5")); 392propertyBag.Set(ProjectPropertyInstance.Create("and", "and")); 393propertyBag.Set(ProjectPropertyInstance.Create("a_semi_c", "a;c")); 394propertyBag.Set(ProjectPropertyInstance.Create("a_apos_b", "a'b")); 395propertyBag.Set(ProjectPropertyInstance.Create("foo_apos_foo", "foo'foo")); 396propertyBag.Set(ProjectPropertyInstance.Create("a_escapedsemi_b", "a%3bb")); 397propertyBag.Set(ProjectPropertyInstance.Create("a_escapedapos_b", "a%27b")); 398propertyBag.Set(ProjectPropertyInstance.Create("has_trailing_slash", @"foo\"));