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)
153GlobalPropertiesDictionary.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)); 3786globalPropertiesCollection.Set(ProjectPropertyInstance.Create(pair.Key, subToolsetVersion)); 3790globalPropertiesCollection.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)
954propertyBag.Set(ProjectPropertyInstance.Create(Constants.SubToolsetVersionPropertyName, subToolsetVersion));
Graph\GraphBuilder.cs (2)
429globalPropertyDictionary[PropertyNames.IsGraphBuild] = ProjectPropertyInstance.Create(PropertyNames.IsGraphBuild, "true"); 638propertyDictionary[entry.Key] = ProjectPropertyInstance.Create(entry.Key, entry.Value);
Graph\ProjectInterpretation.cs (2)
205ProjectPropertyInstance propertyInstance = ProjectPropertyInstance.Create(propertyName, propertyValue); 418destination[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)
557envPropertiesHashSet.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.localAppData, localAppData)); 561envPropertiesHashSet.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.userExtensionsPath, userExtensionsPath)); 574ProjectPropertyInstance environmentProperty = ProjectPropertyInstance.Create(environmentVariableName, environmentVariable.Value);
Microsoft.Build.Engine.UnitTests (212)
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\ConfigurationMetadata_Tests.cs (1)
128globalProperties["a"] = ProjectPropertyInstance.Create("a", "b");
BackEnd\IntrinsicTask_Tests.cs (5)
548lookup.SetProperty(ProjectPropertyInstance.Create("Keep", "m1;m2")); 651lookup.SetProperty(ProjectPropertyInstance.Create("Remove", "m1;m2")); 747properties.Set(ProjectPropertyInstance.Create("p0", " v0 ")); 3905properties.Set(ProjectPropertyInstance.Create("p0", "v0")); 3912pg.Set(ProjectPropertyInstance.Create("p0", "v0"));
BackEnd\Lookup_Tests.cs (5)
1211ProjectPropertyInstance property = ProjectPropertyInstance.Create("p1", "v1"); 1246group.Set(ProjectPropertyInstance.Create("p1", "v1")); 1252lookup.SetProperty(ProjectPropertyInstance.Create("p1", "v2")); 1261lookup.SetProperty(ProjectPropertyInstance.Create("p1", "v3")); 1270lookup.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)
1866ProjectPropertyInstance.Create("bp1", "v1"), 1867ProjectPropertyInstance.Create("bp2", "v2") 1872ProjectPropertyInstance.Create("ep1", "v1"), 1873ProjectPropertyInstance.Create("ep2", "v2") 1878ProjectPropertyInstance.Create("gp1", "v1"), 1879ProjectPropertyInstance.Create("gp2", "v2") 1884ProjectPropertyInstance.Create("sp1", "v1"), 1885ProjectPropertyInstance.Create("sp2", "v2") 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[]"));
BuildEventArgsDataEnumeration.cs (1)
33ProjectPropertyInstance.Create("prop", "val"),
Collections\MSBuildNameIgnoreCaseComparer_Tests.cs (1)
47ProjectPropertyInstance p = ProjectPropertyInstance.Create("foo", "bar");
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 (102)
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")); 3196{ [propertyName] = ProjectPropertyInstance.Create(propertyName, properyValue) }; 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)); 3556pg["DifferentTargetsPath"] = ProjectPropertyInstance.Create("DifferentTargetsPath", "Different"); 3564pg["DifferentTargetsPath"] = ProjectPropertyInstance.Create("DifferentTargetsPath", String.Empty); 3610ProjectPropertyInstance.Create("MyPath", "one"), 3611ProjectPropertyInstance.Create("MySecondPath", "two"), 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\"));