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