164 references to CreateProjectFile
Microsoft.Build.Engine.UnitTests (164)
Graph\GetCompatiblePlatformGraph_Tests.cs (10)
43
TransientTestFile entryProject =
CreateProjectFile
(env, 1, extraContent: @"<PropertyGroup>
70
TransientTestFile entryProject =
CreateProjectFile
(env, 1, extraContent: @"<PropertyGroup>
111
TransientTestFile entryProject =
CreateProjectFile
(env, 1, extraContent: @"<PropertyGroup>
153
TransientTestFile entryProject =
CreateProjectFile
(env, 1, extraContent: @"<PropertyGroup>
194
TransientTestFile entryProject =
CreateProjectFile
(env, 1, extraContent: @"<PropertyGroup>
221
TransientTestFile entryProject =
CreateProjectFile
(env, 1, extraContent: @"<PropertyGroup>
249
TransientTestFile entryProject =
CreateProjectFile
(env, 1, extraContent: @"<PropertyGroup>
276
TransientTestFile entryProject =
CreateProjectFile
(env, 1, extraContent: @"<PropertyGroup>
304
TransientTestFile entryProject =
CreateProjectFile
(env, 1, extraContent: @"<PropertyGroup>
334
TransientTestFile entryProject =
CreateProjectFile
(env, 1, extraContent: @"<PropertyGroup>
Graph\GraphLoadedFromSolution_tests.cs (5)
75
var root = GraphTestingUtilities.
CreateProjectFile
(
612
{"1", GraphTestingUtilities.
CreateProjectFile
(_env, 1, new[] {2}).Path},
613
{"2", GraphTestingUtilities.
CreateProjectFile
(_env, 2, extraContent: MultitargetingSpecificationPropertyGroup).Path},
614
{"3", GraphTestingUtilities.
CreateProjectFile
(_env, 3, new[] {4}, extraContent: MultitargetingSpecificationPropertyGroup).Path},
615
{"4", GraphTestingUtilities.
CreateProjectFile
(_env, 4).Path}
Graph\IsolateProjects_Tests.cs (3)
278
string undeclaredReferenceFile = GraphTestingUtilities.
CreateProjectFile
(
299
string declaredReferenceFile = GraphTestingUtilities.
CreateProjectFile
(
317
string rootFile = GraphTestingUtilities.
CreateProjectFile
(
Graph\ProjectGraph_Tests.cs (146)
64
TransientTestFile entryProject =
CreateProjectFile
(env, 1);
91
TransientTestFile entryProject =
CreateProjectFile
(env, 1, new[] { 2 });
92
CreateProjectFile
(env, 2, new[] { 2 }, extraContent: @"<PropertyGroup><UsingMicrosoftNETSdk>true</UsingMicrosoftNETSdk></PropertyGroup>");
102
TransientTestFile entryProject =
CreateProjectFile
(env, 1);
205
TransientTestFile entryProject =
CreateProjectFile
(env, 1);
227
TransientTestFile entryProject =
CreateProjectFile
(env, 1, new[] { 2, 3 });
228
CreateProjectFile
(env, 2);
229
CreateProjectFile
(env, 3);
251
CreateProjectFile
(env, 1, new[] { 4, 5 });
252
TransientTestFile entryProject =
CreateProjectFile
(env, 2, new[] { 3, 5, 6 });
253
CreateProjectFile
(env, 3);
254
CreateProjectFile
(env, 4);
255
CreateProjectFile
(env, 5, new[] { 7 });
256
CreateProjectFile
(env, 6, new[] { 1 });
257
CreateProjectFile
(env, 7);
305
TransientTestFile entryProject =
CreateProjectFile
(env, 1, new[] { 2 });
306
var proj2 =
CreateProjectFile
(env, 2, new[] { 3 });
307
var proj3 =
CreateProjectFile
(env, 3, new[] { 1 });
319
TransientTestFile entryProject =
CreateProjectFile
(env, 1, new[] { 2, 3 });
320
CreateProjectFile
(env, 2, new[] { 2 });
321
CreateProjectFile
(env, 3);
332
TransientTestFile entryProject =
CreateProjectFile
(env, 1, new[] { 2, 3, 4 });
333
var proj2 =
CreateProjectFile
(env, 2, new[] { 5, 6 });
334
var proj3 =
CreateProjectFile
(env, 3, new[] { 2, 8 });
335
CreateProjectFile
(env, 4);
336
CreateProjectFile
(env, 5, new[] { 9, 10 });
337
var proj6 =
CreateProjectFile
(env, 6, new[] { 7 });
338
var proj7 =
CreateProjectFile
(env, 7, new[] { 3 });
339
CreateProjectFile
(env, 8);
340
CreateProjectFile
(env, 9);
341
CreateProjectFile
(env, 10);
351
var entryFile1 =
CreateProjectFile
(_env, 1, new[] { 3, 4 });
352
var entryFile2 =
CreateProjectFile
(_env, 2, new[] { 4, 5 });
353
CreateProjectFile
(_env, 3);
354
CreateProjectFile
(_env, 4);
355
CreateProjectFile
(_env, 5);
389
TransientTestFile entryProject =
CreateProjectFile
(env, 1, new[] { 2, 3 });
402
CreateProjectFile
(env, 4);
428
CreateProjectFile
(env, 2, new[] { 3 });
429
CreateProjectFile
(env, 3);
441
TransientTestFile entryProject =
CreateProjectFile
(env, 1, new[] { 2, 3 });
460
CreateProjectFile
(env, 5);
481
TransientTestFile entryProject =
CreateProjectFile
(env, 1, new[] { 2, 3 });
494
CreateProjectFile
(env, 4);
512
TransientTestFile entryProject =
CreateProjectFile
(env, 1, new[] { 2, 3, 4 });
531
CreateProjectFile
(env, 5);
554
TransientTestFile entryProject =
CreateProjectFile
(env, 1, new[] { 2 });
561
CreateProjectFile
(env, 3);
575
TransientTestFile entryProject1 =
CreateProjectFile
(env, 1, new[] { 3 });
576
TransientTestFile entryProject2 =
CreateProjectFile
(env, 2, new[] { 3 });
577
CreateProjectFile
(env, 3);
596
TransientTestFile entryProject =
CreateProjectFile
(env, 1, new[] { 2 });
597
CreateProjectFile
(env, 2);
636
CreateProjectFile
(env, 2);
667
TransientTestFile entryProject1 =
CreateProjectFile
(env, 1, new[] { 4 });
668
TransientTestFile entryProject2 =
CreateProjectFile
(env, 2, new[] { 4, 5 });
669
TransientTestFile entryProject3 =
CreateProjectFile
(env, 3, new[] { 2, 6 });
670
CreateProjectFile
(env, 4);
671
CreateProjectFile
(env, 5);
672
CreateProjectFile
(env, 6);
919
TransientTestFile entryProject =
CreateProjectFile
(env: env, projectNumber: 1, projectReferences: new[] { 2, 3 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } });
920
CreateProjectFile
(env: env, projectNumber: 2, projectReferences: new[] { 4 }, projectReferenceTargets: new Dictionary<string, string[]> { { "B", new[] { "C" } } });
921
CreateProjectFile
(env: env, projectNumber: 3, projectReferences: new[] { 4 }, projectReferenceTargets: new Dictionary<string, string[]> { { "B", new[] { "D" } } });
922
CreateProjectFile
(env: env, projectNumber: 4);
948
TransientTestFile entryProject =
CreateProjectFile
(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: projectReferenceTargets);
949
CreateProjectFile
(env: env, projectNumber: 2, projectReferences: new[] { 3 }, projectReferenceTargets: projectReferenceTargets);
950
CreateProjectFile
(env: env, projectNumber: 3, projectReferences: Array.Empty<int>(), projectReferenceTargets: projectReferenceTargets);
976
TransientTestFile entryProject =
CreateProjectFile
(env: env, projectNumber: 1, projectReferences: new[] { 2, 3, 5 }, projectReferenceTargets: projectReferenceTargets);
977
CreateProjectFile
(env: env, projectNumber: 2, projectReferences: new[] { 4, 5 }, projectReferenceTargets: projectReferenceTargets);
978
CreateProjectFile
(env: env, projectNumber: 3, projectReferences: new[] { 5, 6 }, projectReferenceTargets: projectReferenceTargets);
979
CreateProjectFile
(env: env, projectNumber: 4, projectReferences: new[] { 5 }, projectReferenceTargets: projectReferenceTargets);
980
CreateProjectFile
(env: env, projectNumber: 5, projectReferences: new[] { 6 }, projectReferenceTargets: projectReferenceTargets);
981
CreateProjectFile
(env: env, projectNumber: 6, projectReferences: Array.Empty<int>(), projectReferenceTargets: projectReferenceTargets);
1002
TransientTestFile entryProject =
CreateProjectFile
(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: "A");
1003
CreateProjectFile
(env: env, projectNumber: 2);
1020
TransientTestFile entryProject =
CreateProjectFile
(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: "A");
1021
CreateProjectFile
(env: env, projectNumber: 2);
1040
TransientTestFile entryProject =
CreateProjectFile
(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: string.Empty);
1044
CreateProjectFile
(env: env, projectNumber: 2, defaultTargets: "B");
1063
TransientTestFile entryProject =
CreateProjectFile
(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { " ; ; " } } }, defaultTargets: string.Empty);
1067
CreateProjectFile
(env: env, projectNumber: 2, defaultTargets: "B");
1084
TransientTestFile entryProject =
CreateProjectFile
(env: env, projectNumber: 1);
1099
var root1 =
CreateProjectFile
(
1107
CreateProjectFile
(env, 2);
1133
var root1 =
CreateProjectFile
(
1141
CreateProjectFile
(
1169
var root1 =
CreateProjectFile
(
1176
CreateProjectFile
(
1217
string entryProject =
CreateProjectFile
(
1231
CreateProjectFile
(
1243
CreateProjectFile
(
1285
var root1 =
CreateProjectFile
(
1301
var root2 =
CreateProjectFile
(
1315
CreateProjectFile
(
1323
CreateProjectFile
(
1331
CreateProjectFile
(
1348
CreateProjectFile
(
1391
TransientTestFile entryProject =
CreateProjectFile
(env, 1, new[] { 2 }, new Dictionary<string, string[]> { { "A", new[] { ".default" } } }, defaultTargets: "A");
1392
CreateProjectFile
(env: env, projectNumber: 2, defaultTargets: "B");
1409
TransientTestFile entryProject =
CreateProjectFile
(
1415
CreateProjectFile
(env: env, projectNumber: 2);
1439
TransientTestFile entryProject =
CreateProjectFile
(env, 1, new[] { 2, 3, 4 }, projectReferenceTargets);
1440
CreateProjectFile
(env: env, projectNumber: 2, projectReferences: new[] { 5 }, projectReferenceTargets: projectReferenceTargets);
1441
CreateProjectFile
(env: env, projectNumber: 3, projectReferences: new[] { 6 }, projectReferenceTargets: projectReferenceTargets, defaultTargets: "X");
1442
CreateProjectFile
(env: env, projectNumber: 4, projectReferences: new[] { 7 }, projectReferenceTargets: projectReferenceTargets, defaultTargets: "Y");
1443
CreateProjectFile
(env: env, projectNumber: 5);
1444
CreateProjectFile
(env: env, projectNumber: 6);
1445
CreateProjectFile
(env: env, projectNumber: 7, defaultTargets: "Z;W");
1473
var entryProject =
CreateProjectFile
(
1478
CreateProjectFile
(
1486
CreateProjectFile
(
1494
CreateProjectFile
(
1502
CreateProjectFile
(env: env, projectNumber: 5, projectReferences: null, projectReferenceTargets: null, defaultTargets: "D51;D52");
1630
TransientTestFile entryProject1 =
CreateProjectFile
(env, 1, projectReferences: new[] { 2 }, defaultTargets: "A", extraContent: ProjectReferenceTargetsWithMultitargeting);
1631
TransientTestFile entryProject2 =
CreateProjectFile
(env, 2, defaultTargets: "A", extraContent: OuterBuildSpecificationWithProjectReferenceTargets);
1898
var entryProject =
CreateProjectFile
(
1902
CreateProjectFile
(
1925
var entryProject =
CreateProjectFile
(
1936
CreateProjectFile
(
1975
var root =
CreateProjectFile
(_env, 1, new[] { 2 }, null, null, multitargetingSpecification).Path;
1976
CreateProjectFile
(_env, 2, null, null, null, multitargetingSpecification);
1994
var root =
CreateProjectFile
(env: _env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: null, defaultTargets: null, extraContent: MultitargetingSpecificationPropertyGroup).Path;
1995
CreateProjectFile
(env: _env, projectNumber: 2);
2015
var root =
CreateProjectFile
(
2023
CreateProjectFile
(env: _env, projectNumber: 2);
2041
var root =
CreateProjectFile
(env: _env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: null, defaultTargets: null, extraContent: MultitargetingSpecificationPropertyGroup).Path;
2042
CreateProjectFile
(env: _env, projectNumber: 2);
2060
var root =
CreateProjectFile
(env: _env, projectNumber: 1, projectReferences: new[] { 2, 3 }, projectReferenceTargets: null, defaultTargets: null, extraContent: MultitargetingSpecificationPropertyGroup).Path;
2061
CreateProjectFile
(env: _env, projectNumber: 2, projectReferences: new[] { 4 });
2062
CreateProjectFile
(env: _env, projectNumber: 3, projectReferences: new[] { 4 });
2063
CreateProjectFile
(env: _env, projectNumber: 4, projectReferences: null, projectReferenceTargets: null, defaultTargets: null, extraContent: MultitargetingSpecificationPropertyGroup);
2086
var root =
CreateProjectFile
(env: _env, projectNumber: 1, projectReferences: new[] { 2, 3 }, projectReferenceTargets: null, defaultTargets: null, extraContent: extraInnerBuildReferenceSpec).Path;
2087
CreateProjectFile
(env: _env, projectNumber: 2, projectReferences: null, projectReferenceTargets: null, defaultTargets: null, extraContent: MultitargetingSpecificationPropertyGroup);
2088
CreateProjectFile
(env: _env, projectNumber: 3);
2089
CreateProjectFile
(env: _env, projectNumber: 4, projectReferences: null, projectReferenceTargets: null, defaultTargets: null, extraContent: MultitargetingSpecificationPropertyGroup);
2090
CreateProjectFile
(env: _env, projectNumber: 5);
2129
CreateProjectFile
(env: _env, projectNumber: 1, projectReferences: null, projectReferenceTargets: null, defaultTargets: null, extraContent: MultitargetingSpecificationPropertyGroup).Path,
2130
CreateProjectFile
(env: _env, projectNumber: 2, projectReferences: null, projectReferenceTargets: null, defaultTargets: null, extraContent: referenceToInnerBuild).Path
2160
var root =
CreateProjectFile
(env: _env, projectNumber: 1, projectReferences: null, projectReferenceTargets: null, defaultTargets: null, extraContent: referenceToInnerBuild).Path;
2161
CreateProjectFile
(env: _env, projectNumber: 2, projectReferences: new[] { 3 }, projectReferenceTargets: null, defaultTargets: null, extraContent: MultitargetingSpecificationPropertyGroup + $"<PropertyGroup><{InnerBuildPropertyName}>a</{InnerBuildPropertyName}></PropertyGroup>");
2162
CreateProjectFile
(env: _env, projectNumber: 3);
2193
var root =
CreateProjectFile
(
2202
CreateProjectFile
(
2838
TransientTestFile project1File =
CreateProjectFile
(env: env, projectNumber: 1, defaultTargets: "Project1Default", extraContent: ExtraContent);
2839
TransientTestFile project2File =
CreateProjectFile
(env: env, projectNumber: 2, defaultTargets: "Project2Default", extraContent: ExtraContent);
2891
TransientTestFile project1File =
CreateProjectFile
(env: env, projectNumber: 1);