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