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