230 references to Create
Microsoft.Build (18)
BackEnd\BuildManager\BuildParameters.cs (1)
470
_globalProperties[property.Key] = ProjectPropertyInstance.
Create
(property.Key, property.Value);
BackEnd\BuildManager\BuildRequestData.cs (1)
153
GlobalPropertiesDictionary.Set(ProjectPropertyInstance.
Create
(propertyPair.Key, propertyPair.Value));
BackEnd\Shared\BuildRequestConfiguration.cs (1)
522
_globalProperties[key] = ProjectPropertyInstance.
Create
(key, "Forces unique project identity in the MSBuild engine");
BackEnd\Shared\ConfigurationMetadata.cs (1)
42
_globalProperties[entry.Key] = ProjectPropertyInstance.
Create
(entry.Key, entry.Value);
Definition\Project.cs (3)
2969
_data.GlobalPropertiesDictionary.Set(ProjectPropertyInstance.
Create
(name, escapedValue));
3786
globalPropertiesCollection.Set(ProjectPropertyInstance.
Create
(pair.Key, subToolsetVersion));
3790
globalPropertiesCollection.Set(ProjectPropertyInstance.
Create
(pair.Key, pair.Value));
Definition\ProjectCollection.cs (2)
348
_globalProperties.Set(ProjectPropertyInstance.
Create
(pair.Key, pair.Value));
1448
_globalProperties.Set(ProjectPropertyInstance.
Create
(name, value));
Definition\Toolset.cs (1)
954
propertyBag.Set(ProjectPropertyInstance.
Create
(Constants.SubToolsetVersionPropertyName, subToolsetVersion));
Graph\GraphBuilder.cs (2)
429
globalPropertyDictionary[PropertyNames.IsGraphBuild] = ProjectPropertyInstance.
Create
(PropertyNames.IsGraphBuild, "true");
638
propertyDictionary[entry.Key] = ProjectPropertyInstance.
Create
(entry.Key, entry.Value);
Graph\ProjectInterpretation.cs (2)
205
ProjectPropertyInstance propertyInstance = ProjectPropertyInstance.
Create
(propertyName, propertyValue);
418
destination[pair.Key] = ProjectPropertyInstance.
Create
(pair.Key, pair.Value);
Instance\ProjectInstance.cs (1)
392
_globalProperties.Set(ProjectPropertyInstance.
Create
(property.Key, property.Value));
Utilities\Utilities.cs (3)
557
envPropertiesHashSet.Add(ProjectPropertyInstance.
Create
(ReservedPropertyNames.localAppData, localAppData));
561
envPropertiesHashSet.Add(ProjectPropertyInstance.
Create
(ReservedPropertyNames.userExtensionsPath, userExtensionsPath));
574
ProjectPropertyInstance environmentProperty = ProjectPropertyInstance.
Create
(environmentVariableName, environmentVariable.Value);
Microsoft.Build.Engine.UnitTests (212)
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\ConfigurationMetadata_Tests.cs (1)
128
globalProperties["a"] = ProjectPropertyInstance.
Create
("a", "b");
BackEnd\IntrinsicTask_Tests.cs (5)
548
lookup.SetProperty(ProjectPropertyInstance.
Create
("Keep", "m1;m2"));
651
lookup.SetProperty(ProjectPropertyInstance.
Create
("Remove", "m1;m2"));
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 (5)
1211
ProjectPropertyInstance property = ProjectPropertyInstance.
Create
("p1", "v1");
1246
group.Set(ProjectPropertyInstance.
Create
("p1", "v1"));
1252
lookup.SetProperty(ProjectPropertyInstance.
Create
("p1", "v2"));
1261
lookup.SetProperty(ProjectPropertyInstance.
Create
("p1", "v3"));
1270
lookup.SetProperty(ProjectPropertyInstance.
Create
("p1", "v4"));
BackEnd\TaskExecutionHost_Tests.cs (6)
771
_bucket.Lookup.SetProperty(ProjectPropertyInstance.
Create
("output", "initialvalue"));
781
_bucket.Lookup.SetProperty(ProjectPropertyInstance.
Create
("output", "initialvalue"));
791
_bucket.Lookup.SetProperty(ProjectPropertyInstance.
Create
("output", "initialvalue"));
801
_bucket.Lookup.SetProperty(ProjectPropertyInstance.
Create
("output", "initialvalue"));
811
_bucket.Lookup.SetProperty(ProjectPropertyInstance.
Create
("output", "initialvalue"));
821
_bucket.Lookup.SetProperty(ProjectPropertyInstance.
Create
("output", "initialvalue"));
BackEnd\TaskRegistry_Tests.cs (12)
1866
ProjectPropertyInstance.
Create
("bp1", "v1"),
1867
ProjectPropertyInstance.
Create
("bp2", "v2")
1872
ProjectPropertyInstance.
Create
("ep1", "v1"),
1873
ProjectPropertyInstance.
Create
("ep2", "v2")
1878
ProjectPropertyInstance.
Create
("gp1", "v1"),
1879
ProjectPropertyInstance.
Create
("gp2", "v2")
1884
ProjectPropertyInstance.
Create
("sp1", "v1"),
1885
ProjectPropertyInstance.
Create
("sp2", "v2")
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[]"));
BuildEventArgsDataEnumeration.cs (1)
33
ProjectPropertyInstance.
Create
("prop", "val"),
Collections\MSBuildNameIgnoreCaseComparer_Tests.cs (1)
47
ProjectPropertyInstance p = ProjectPropertyInstance.
Create
("foo", "bar");
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 (102)
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"));
3196
{ [propertyName] = ProjectPropertyInstance.
Create
(propertyName, properyValue) };
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));
3556
pg["DifferentTargetsPath"] = ProjectPropertyInstance.
Create
("DifferentTargetsPath", "Different");
3564
pg["DifferentTargetsPath"] = ProjectPropertyInstance.
Create
("DifferentTargetsPath", String.Empty);
3610
ProjectPropertyInstance.
Create
("MyPath", "one"),
3611
ProjectPropertyInstance.
Create
("MySecondPath", "two"),
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\"));