130 references to CreateFile
Microsoft.Build.BuildCheck.UnitTests (18)
ConfigurationProvider_Tests.cs (7)
24TransientTestFile config1 = testEnvironment.CreateFile(workFolder1, ".editorconfig", 45TransientTestFile config1 = testEnvironment.CreateFile(workFolder1, ".editorconfig", 72TransientTestFile config1 = testEnvironment.CreateFile(workFolder1, ".editorconfig", 105TransientTestFile config1 = testEnvironment.CreateFile(workFolder1, ".editorconfig", 130TransientTestFile config1 = testEnvironment.CreateFile(workFolder1, ".editorconfig", 161TransientTestFile config1 = testEnvironment.CreateFile(workFolder1, ".editorconfig", 193TransientTestFile config1 = testEnvironment.CreateFile(workFolder1, ".editorconfig",
EditorConfigParser_Tests.cs (4)
68TransientTestFile config1 = testEnvironment.CreateFile(workFolder2, ".editorconfig", 77TransientTestFile config2 = testEnvironment.CreateFile(workFolder1, ".editorconfig", 100TransientTestFile config1 = testEnvironment.CreateFile(workFolder2, ".editorconfig", 106TransientTestFile config2 = testEnvironment.CreateFile(workFolder1, ".editorconfig",
EndToEndTests.cs (3)
951projectFile = _env.CreateFile(workFolder, entryProjectAssetName, contents); 956TransientTestFile supplementalFile = _env.CreateFile(workFolder, supplementalAssetName, supplementalContent); 959editorconfigFile = _env.CreateFile(workFolder, ".editorconfig", ReadEditorConfig(ruleToSeverity, ruleToCustomConfig, testAssetsFolderName));
TestAssemblyInfo.cs (4)
78_testEnvironment.CreateFile( 84_testEnvironment.CreateFile( 89_testEnvironment.CreateFile( 94_testEnvironment.CreateFile(
Microsoft.Build.CommandLine.UnitTests (10)
PerfLog_Tests.cs (2)
34TransientTestFile classLibrary = testEnv.CreateFile(projectFolder, "ClassLibrary.csproj", 70TransientTestFile classLibrary = testEnv.CreateFile(projectFolder, "ClassLibrary.csproj",
TerminalLogger_Tests.cs (1)
727TransientTestFile projectFile = env.CreateFile(logFolder, "myProj.proj", contents);
TestAssemblyInfo.cs (4)
78_testEnvironment.CreateFile( 84_testEnvironment.CreateFile( 89_testEnvironment.CreateFile( 94_testEnvironment.CreateFile(
XMake_Tests.cs (3)
1283TransientTestFile autoRspFile = env.CreateFile(folder, AutoResponseFileName, "-nowarn:MSB1001 @myRsp.rsp %NONEXISTENTENVIRONMENTVARIABLE%"); 1284TransientTestFile projectFile = env.CreateFile(folder, "project.proj", "<Project><Target Name=\"T\"><Message Text=\"Text\"/></Target></Project>"); 1285TransientTestFile rpsFile = env.CreateFile(folder, "myRsp.rsp", "-nr:false -m:2");
Microsoft.Build.Engine.OM.UnitTests (6)
Definition\ProjectItem_Tests.cs (1)
452TransientTestFile file = env.CreateFile(directory, "a.cs", String.Empty);
NugetRestoreTests.cs (1)
30TransientTestFile sln = testEnvironment.CreateFile(folder, "test.sln",
TestAssemblyInfo.cs (4)
78_testEnvironment.CreateFile( 84_testEnvironment.CreateFile( 89_testEnvironment.CreateFile( 94_testEnvironment.CreateFile(
Microsoft.Build.Engine.UnitTests (41)
BinaryLogger_Tests.cs (4)
354TransientTestFile projectFile = env.CreateFile(logFolder, "myProj.proj", contents); 413TransientTestFile projectFile = env.CreateFile(logFolder, "myProj.proj", contents); 625TransientTestFile projectFile1 = env.CreateFile(testFolder, "testProject01.proj", contents); 633TransientTestFile projectFile2 = env.CreateFile(testFolder, $"testProject_{verbosity}.proj", contents);
Construction\SolutionFilter_Tests.cs (7)
56TransientTestFile classLibrary = testEnvironment.CreateFile(classLibSubFolder, "ClassLibrary.csproj", 66TransientTestFile simpleProject = testEnvironment.CreateFile(simpleProjectSubFolder, "SimpleProject.csproj", 74TransientTestFile solutionFile = testEnvironment.CreateFile(simpleProjectFolder, "SimpleProject.sln", 111TransientTestFile filterFile = testEnvironment.CreateFile(folder, "solutionFilter.slnf", 215TransientTestFile slnf = testEnvironment.CreateFile(folder, "Dev.slnf", slnfValue.Replace(@"C:\\notAPath\\MSBuild.Dev.sln", sln.Path.Replace("\\", "\\\\"))); 238TransientTestFile sln = testEnvironment.CreateFile(folder, "Microsoft.Build.Dev.sln", 264TransientTestFile slnf = testEnvironment.CreateFile(folder, "Dev.slnf",
Construction\SolutionProjectGenerator_Tests.cs (11)
70TransientTestFile sln = testEnvironment.CreateFile(folder, "MySln.sln", "Microsoft Visual Studio Solution File, Format Version 12.00"); 71TransientTestFile targetsFile = testEnvironment.CreateFile(folder, name, 93TransientTestFile classLibrary = testEnvironment.CreateFile(classLibFolder, "classlib.csproj", 103TransientTestFile simpleProject = testEnvironment.CreateFile(simpleProjectFolder, "simpleProject.csproj", 112TransientTestFile solutionFile = testEnvironment.CreateFile(folder, "testFolder.sln", 138TransientTestFile classLibrary = testEnvironment.CreateFile(classLibFolder, "classlib.csproj", 154TransientTestFile simpleProject = testEnvironment.CreateFile(simpleProjectFolder, "simpleProject.csproj", 169TransientTestFile solutionFile = testEnvironment.CreateFile(folder, "testFolder.sln", 214TransientTestFile classLibrary = testEnvironment.CreateFile(classLibFolder, "classlib.csproj", 230TransientTestFile simpleProject = testEnvironment.CreateFile(simpleProjectFolder, "simpleProject.csproj", 245TransientTestFile solutionFile = testEnvironment.CreateFile(folder, "testFolder.sln",
Evaluation\Evaluator_Tests.cs (1)
77TransientTestFile realFile = env.CreateFile(existentDirectory, "realFile.csproj", @"<Project> </Project>");
Evaluation\Expander_Tests.cs (9)
4783var projectFile = env.CreateFile(alpha, ".proj", 4827var projectFile = env.CreateFile(alpha, ".proj", 4861var projectFile = env.CreateFile(root, ".proj", 4901var projectFile = env.CreateFile(root, ".proj", 4942var projectFile = env.CreateFile(root, ".proj", 4984var projectFile = env.CreateFile(root, ".proj", 5028var projectFile = env.CreateFile(root, ".proj", 5071var projectFile = env.CreateFile(root, ".proj", 5103var projectFile = env.CreateFile(root, ".proj",
Graph\GetCompatiblePlatformGraph_Tests.cs (4)
367TransientTestFile project1 = testEnvironment.CreateFile(project1SubFolder, $"{firstProjectName}.csproj", 382TransientTestFile project2 = testEnvironment.CreateFile(project2SubFolder, $"{secondProjectName}.proj", 393TransientTestFile project3 = testEnvironment.CreateFile(project3SubFolder, $"{thirdProjectName}.proj", 404TransientTestFile solutionFile = testEnvironment.CreateFile(folder, "SimpleProject.sln",
TerminalLoggerConfiguration_Tests.cs (1)
32TransientTestFile projectFile = _env.CreateFile(logFolder, "myProj.proj", $"""
TestAssemblyInfo.cs (4)
78_testEnvironment.CreateFile( 84_testEnvironment.CreateFile( 89_testEnvironment.CreateFile( 94_testEnvironment.CreateFile(
Microsoft.Build.Framework.UnitTests (4)
TestAssemblyInfo.cs (4)
78_testEnvironment.CreateFile( 84_testEnvironment.CreateFile( 89_testEnvironment.CreateFile( 94_testEnvironment.CreateFile(
Microsoft.Build.Tasks.UnitTests (46)
AddToWin32Manifest_Tests.cs (1)
104var projectFile = env.CreateFile(projectFolder, "test.csproj", projectContent).Path;
CodeTaskFactoryEmbeddedFileInBinlogTestHelper.cs (1)
32var sourceClass = env.CreateFile(folder, $"{taskName}.cs", sourceContent);
DownloadFile_Tests.cs (1)
338testEnvironment.CreateFile(folder, "foo.txt", "C197675A3CC64CAA80680128CF4578C9");
MSBuildInternalMessage_Tests.cs (5)
45var projectFile = env.CreateFile(env.CreateFolder(), "test.csproj", projectContent).Path; 88var projectFile = env.CreateFile(env.CreateFolder(), "test.csproj", projectContent).Path; 143var projectFile = env.CreateFile(env.CreateFolder(), "test.csproj", projectContent).Path; 218var projectFile = env.CreateFile(env.CreateFolder(), fileName, projectContent).Path; 263var projectFile = env.CreateFile(env.CreateFolder(), "test.csproj", projectContent).Path;
ResourceHandling\GenerateResource_Tests.cs (1)
3674env.CreateFile(
RoslynCodeTaskFactory_Tests.cs (4)
52TransientTestFile inlineTask = env.CreateFile(folder, "5106.proj", @$" 92TransientTestFile assemblyProj = env.CreateFile(folder, "5106.csproj", @$" 105TransientTestFile csFile = env.CreateFile(folder, "Class1.cs", @" 119TransientTestFile inlineTask = env.CreateFile(folder, "5106.proj", @$"
TestAssemblyInfo.cs (4)
78_testEnvironment.CreateFile( 84_testEnvironment.CreateFile( 89_testEnvironment.CreateFile( 94_testEnvironment.CreateFile(
Unzip_Tests.cs (24)
31TransientTestFile file1 = testEnvironment.CreateFile(source, "638AF4AE88A146E09CB69FE1CA7083DC.txt", "file1"); 59testEnvironment.CreateFile(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1"); 60testEnvironment.CreateFile(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2"); 113testEnvironment.CreateFile(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1"); 114testEnvironment.CreateFile(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2"); 184TransientTestFile file1 = testEnvironment.CreateFile(source, "D6DFD219DACE48F8B86EFCDF98433333.txt", "file1"); 254testEnvironment.CreateFile(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1"); 255testEnvironment.CreateFile(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2"); 283testEnvironment.CreateFile(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1"); 284testEnvironment.CreateFile(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2"); 313testEnvironment.CreateFile(source, "file1.js", "file1"); 314testEnvironment.CreateFile(source, "file1.js.map", "file2"); 315testEnvironment.CreateFile(source, "file2.js", "file3"); 316testEnvironment.CreateFile(source, "readme.txt", "file4"); 317testEnvironment.CreateFile(sub, "subfile.js", "File5"); 349testEnvironment.CreateFile(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1"); 350testEnvironment.CreateFile(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2"); 377testEnvironment.CreateFile(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1"); 378testEnvironment.CreateFile(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2"); 405testEnvironment.CreateFile(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1"); 406testEnvironment.CreateFile(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2"); 433testEnvironment.CreateFile(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1"); 434testEnvironment.CreateFile(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2"); 460var sourceFile = testEnvironment.CreateFile(source, executableName, "Dummy executable");
ZipDirectory_Tests.cs (5)
29testEnvironment.CreateFile(sourceFolder, "6DE6060259C44DB6B145159376751C22.txt", "6DE6060259C44DB6B145159376751C22"); 30testEnvironment.CreateFile(sourceFolder, "CDA3DD8C25A54A7CAC638A444CB1EAD0.txt", "CDA3DD8C25A54A7CAC638A444CB1EAD0"); 70testEnvironment.CreateFile(sourceFolder, "F1C22D660B0D4DAAA296C1B980320B03.txt", "F1C22D660B0D4DAAA296C1B980320B03"); 71testEnvironment.CreateFile(sourceFolder, "AA825D1CB154492BAA58E1002CE1DFEB.txt", "AA825D1CB154492BAA58E1002CE1DFEB"); 73TransientTestFile file = testEnvironment.CreateFile(testEnvironment.DefaultTestDirectory, "test.zip", contents: "test");
Microsoft.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
218return CreateFile(DefaultTestDirectory, fileName, contents);
Microsoft.Build.Utilities.UnitTests (4)
TestAssemblyInfo.cs (4)
78_testEnvironment.CreateFile( 84_testEnvironment.CreateFile( 89_testEnvironment.CreateFile( 94_testEnvironment.CreateFile(