122 references to CreateFolder
Microsoft.Build.BuildCheck.UnitTests (3)
EditorConfigParser_Tests.cs (2)
66TransientTestFolder workFolder2 = testEnvironment.CreateFolder(Path.Combine(workFolder1.Path, "subfolder"), createFolder: true); 98TransientTestFolder workFolder2 = testEnvironment.CreateFolder(Path.Combine(workFolder1.Path, "subfolder"), createFolder: true);
TestAssemblyInfo.cs (1)
71var assemblyTempFolder = _testEnvironment.CreateFolder(newTempPath);
Microsoft.Build.CommandLine.UnitTests (10)
TestAssemblyInfo.cs (1)
71var assemblyTempFolder = _testEnvironment.CreateFolder(newTempPath);
XMake_Tests.cs (9)
1303var directory = _env.CreateFolder(); 1320var directory = _env.CreateFolder(); 1340var directory = _env.CreateFolder(); 1438var directory = _env.CreateFolder(); 1457var directory = _env.CreateFolder(); 1475var directory = _env.CreateFolder(); 1493var directory = _env.CreateFolder(); 1516var directory = _env.CreateFolder(); 2481var tempDir = _env.CreateFolder();
Microsoft.Build.Engine.OM.UnitTests (2)
Construction\ConstructionEditing_Tests.cs (1)
3211var testSdkRoot = env.CreateFolder().Path;
TestAssemblyInfo.cs (1)
71var assemblyTempFolder = _testEnvironment.CreateFolder(newTempPath);
Microsoft.Build.Engine.UnitTests (60)
BackEnd\BuildManager_Tests.cs (1)
1876var projectFolder = _env.CreateFolder();
BackEnd\BuildRequestConfiguration_Tests.cs (1)
566project.FullPath = _env.CreateFolder().Path;
BackEnd\IntrinsicTask_Tests.cs (1)
2525var projectDirectory = env.CreateFolder();
BackEnd\SdkResolverLoader_Tests.cs (8)
220var root = env.CreateFolder().Path; 245var root = env.CreateFolder().Path; 272var root = env.CreateFolder().Path; 296var root = env.CreateFolder().Path; 312var root = env.CreateFolder().Path; 339var testRoot = env.CreateFolder().Path; 367var testRoot = env.CreateFolder().Path; 368var additionalRoot = env.CreateFolder().Path;
BackEnd\SdkResultOutOfProc_Tests.cs (2)
118string projectFolder = _env.CreateFolder().Path; 153string projectFolder = _env.CreateFolder().Path;
BackEnd\TaskBuilder_Tests.cs (1)
661env.CreateFolder(customTaskFolder);
BackEnd\TaskExecutionHost_Tests.cs (1)
1064var debugFolder = env.CreateFolder();
Construction\SolutionFile_OldParser_Tests.cs (2)
773var solutionFolder = env.CreateFolder(Path.Combine(FileUtilities.GetTemporaryDirectory(), "sln")); 774env.CreateFolder(Path.Combine(solutionFolder.Path, "RelativePath"));
Construction\SolutionFilter_Tests.cs (5)
54TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "ClassLibrary"), createFolder: true); 55TransientTestFolder classLibSubFolder = testEnvironment.CreateFolder(Path.Combine(classLibFolder.Path, "ClassLibrary"), createFolder: true); 64TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "SimpleProject"), createFolder: true); 65TransientTestFolder simpleProjectSubFolder = testEnvironment.CreateFolder(Path.Combine(simpleProjectFolder.Path, "SimpleProject"), createFolder: true); 232TransientTestFolder src = testEnvironment.CreateFolder(Path.Combine(folder.Path, "src"), createFolder: true);
Construction\SolutionProjectGenerator_Tests.cs (6)
92TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "classlib"), createFolder: true); 102TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "simpleProject"), createFolder: true); 137TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "classlib"), createFolder: true); 153TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "simpleProject"), createFolder: true); 213TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "classlib"), createFolder: true); 229TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "simpleProject"), createFolder: true);
Evaluation\Evaluator_Tests.cs (1)
5057env.CreateFolder(targetDirectory);
Evaluation\Expander_Tests.cs (10)
4780var root = env.CreateFolder(); 4824var root = env.CreateFolder(); 4859var root = env.CreateFolder(); 4899var root = env.CreateFolder(); 4940var root = env.CreateFolder(); 4982var root = env.CreateFolder(); 5026var root = env.CreateFolder(); 5069var root = env.CreateFolder(); 5101var root = env.CreateFolder(); 5175var dummyAssemblyFile = env.CreateFile(env.CreateFolder(), "test.dll");
Evaluation\Preprocessor_Tests.cs (4)
850string testSdkDirectory = env.CreateFolder().Path; 940string testDirectory = env.CreateFolder().Path; 1055string sdk1 = env.CreateFolder().Path; 1056string sdk2 = env.CreateFolder().Path;
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
88_testSdkRoot = _env.CreateFolder().Path; 354var projectFolder = _env.CreateFolder().Path;
Evaluation\SdkResultEvaluation_Tests.cs (1)
40_testFolder = _env.CreateFolder().Path;
FileMatcher_Tests.cs (7)
52TransientTestFolder testFolder = _env.CreateFolder(); 78TransientTestFolder testFolder = _env.CreateFolder(); 80TransientTestFolder tf2 = _env.CreateFolder(Path.Combine(testFolder.Path, "subfolder")); 102TransientTestFolder testFolder = _env.CreateFolder(); 1224string workingPath = _env.CreateFolder().Path; 1238string workingPath = _env.CreateFolder().Path; 1255string workingPath = _env.CreateFolder().Path;
Graph\GetCompatiblePlatformGraph_Tests.cs (6)
365TransientTestFolder project1Folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, firstProjectName), createFolder: true); 366TransientTestFolder project1SubFolder = testEnvironment.CreateFolder(Path.Combine(project1Folder.Path, firstProjectName), createFolder: true); 380TransientTestFolder project2Folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, secondProjectName), createFolder: true); 381TransientTestFolder project2SubFolder = testEnvironment.CreateFolder(Path.Combine(project2Folder.Path, secondProjectName), createFolder: true); 391TransientTestFolder project3Folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, thirdProjectName), createFolder: true); 392TransientTestFolder project3SubFolder = testEnvironment.CreateFolder(Path.Combine(project3Folder.Path, thirdProjectName), createFolder: true);
TestAssemblyInfo.cs (1)
71var assemblyTempFolder = _testEnvironment.CreateFolder(newTempPath);
Microsoft.Build.Framework.UnitTests (1)
TestAssemblyInfo.cs (1)
71var assemblyTempFolder = _testEnvironment.CreateFolder(newTempPath);
Microsoft.Build.Tasks.UnitTests (28)
AddToWin32Manifest_Tests.cs (3)
44var tempOutput = env.CreateFolder().Path; 82var outputPath = env.CreateFolder().Path; 103var projectFolder = env.CreateFolder();
GenerateBindingRedirects_Tests.cs (2)
267TransientTestFolder rootTestFolder = env.CreateFolder(); 268TransientTestFolder testFolder = env.CreateFolder(Path.Combine(rootTestFolder.Path, "\uD873\uDD02\u9FA8\u82D8\u722B\u9EA4\u03C5\u33D1\uE038\u486B\u0033"));
GetSDKReference_Tests.cs (1)
278TransientTestFolder folder = env.CreateFolder();
MSBuildInternalMessage_Tests.cs (10)
27var outputPath = env.CreateFolder().Path; 45var projectFile = env.CreateFile(env.CreateFolder(), "test.csproj", projectContent).Path; 72var outputPath = env.CreateFolder().Path; 88var projectFile = env.CreateFile(env.CreateFolder(), "test.csproj", projectContent).Path; 118var outputPath = env.CreateFolder().Path; 143var projectFile = env.CreateFile(env.CreateFolder(), "test.csproj", projectContent).Path; 196var outputPath = env.CreateFolder().Path; 218var projectFile = env.CreateFile(env.CreateFolder(), fileName, projectContent).Path; 250var outputPath = env.CreateFolder().Path; 263var projectFile = env.CreateFile(env.CreateFolder(), "test.csproj", projectContent).Path;
PortableTasks_Tests.cs (1)
51var folder = env.CreateFolder().Path;
RemoveDir_Tests.cs (1)
56list.Add(new TaskItem(env.CreateFolder().Path));
ResourceHandling\GenerateResource_Tests.cs (5)
324var folder = _env.CreateFolder(); 370var folder = _env.CreateFolder(); 454var folder = _env.CreateFolder(); 675var folder = _env.CreateFolder(); 3675env.CreateFolder(Path.Combine(env.DefaultTestDirectory.Path, "tmp_dir")),
TestAssemblyInfo.cs (1)
71var assemblyTempFolder = _testEnvironment.CreateFolder(newTempPath);
WriteCodeFragment_Tests.cs (3)
105TaskItem folder = new TaskItem(env.CreateFolder(folderPath: null, createFolder: false).Path); 128TaskItem file = new TaskItem(Path.Combine(env.CreateFolder(folderPath: null, createFolder: false).Path, "File.tmp")); 397TaskItem folder = new TaskItem(env.CreateFolder(folderPath: null, createFolder: false).Path);
WriteLinesToFile_Tests.cs (1)
300var directory = testEnv.CreateFolder(folderPath: null, createFolder: false);
Microsoft.Build.UnitTests.Shared (4)
TestEnvironment.cs (4)
66_defaultTestDirectory = new Lazy<TransientTestFolder>(() => CreateFolder()); 182var folder = CreateFolder(); 191var folder = CreateFolder(null, true, subfolder); 301return CreateFolder(null, createFolder);
Microsoft.Build.Utilities.UnitTests (14)
TestAssemblyInfo.cs (1)
71var assemblyTempFolder = _testEnvironment.CreateFolder(newTempPath);
ToolLocationHelper_Tests.cs (12)
2556string rootDir = Path.Combine(env.CreateFolder().Path, "framework-root"); 2557string fallbackPath = Path.Combine(env.CreateFolder().Path, "framework-root"); 2587string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2600string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2602string rootDir = env.CreateFolder().Path; 2617string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2634string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2649string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2651string rootDir = env.CreateFolder().Path; 2666string customFrameworkDirToUse = Path.Combine(env.CreateFolder().Path, "framework-root"); 2726env.CreateFolder(redistPath); 2727env.CreateFolder(asmPath);
ToolTask_Tests.cs (1)
659string tempDirectory = env.CreateFolder().Path;