49 references to CreateFile
Microsoft.Build.CommandLine.UnitTests (17)
XMake_Tests.cs (17)
1305var projectPath = directory.CreateFile("my.proj", content).Path; 1306directory.CreateFile(AutoResponseFileName, "/p:A=1"); 1322var projectPath = directory.CreateFile("my.proj", content).Path; 1323directory.CreateFile("foo.rsp", "/p:A=1"); 1343var projectPath = directory.CreateFile("my.proj", content).Path; 1344directory.CreateFile(AutoResponseFileName, "/p:A=1"); 1440var projectPath = directory.CreateFile("my.proj", content).Path; 1441directory.CreateFile(AutoResponseFileName, "/p:A=1 /noautoresponse"); 1459var projectPath = directory.CreateFile("my.proj", content).Path; 1460directory.CreateFile(AutoResponseFileName, "/p:A=1 /noautoresponse"); 1477directory.CreateFile("projectFile.proj", content); 1478directory.CreateFile("solutionFile.sln", string.Empty); 1479directory.CreateFile("Directory.Build.rsp", "-ignoreProjectExtensions:.sln"); 1496var projectPath = directory.CreateFile("my.proj", content).Path; 1517directory.CreateFile("Directory.Build.rsp", "/p:A=%MSBuildThisFileDirectory%"); 1518var projectPath = directory.CreateFile("my.proj", content).Path; 2482var projectFile = tempDir.CreateFile("missingloggertest.proj", projectString);
Microsoft.Build.Engine.UnitTests (10)
BinaryLogger_Tests.cs (2)
478TransientTestFile testFile = testFolder.CreateFile(testFileName, string.Join(Environment.NewLine, new[] { "123", "456" })); 481string emptyFile = testFolder.CreateFile(emptyFileName).Path;
Definition\ProjectEvaluationContext_Tests.cs (4)
852var subdirectoryFile = subdirectory.CreateFile("a"); 853_env.DefaultTestDirectory.CreateFile("a"); 908var subdirectoryFile = subdirectory.CreateFile("a"); 909var rootFile = _env.DefaultTestDirectory.CreateFile("a");
Evaluation\Expander_Tests.cs (2)
4915var one = alpha.CreateFile("One.cs"); 4916var three = alpha.CreateFile("Three.cs");
Graph\ResultCacheBasedBuilds_Tests.cs (2)
129var outputCache = _env.DefaultTestDirectory.CreateFile("referenceCache").Path; 462outputCaches[node] = env.DefaultTestDirectory.CreateFile($"OutputCache-{ProjectNumber(node)}").Path;
Microsoft.Build.Tasks.UnitTests (22)
Copy_Tests.cs (14)
195s0Folder.CreateFile("00.txt"); 196s0Folder.CreateFile("01.txt"); 198s0AFolder.CreateFile("a0.txt"); 199s0AFolder.CreateFile("a1.txt"); 202s0CFolder.CreateFile("c0.txt"); 205s1Folder.CreateFile("10.txt"); 206s1Folder.CreateFile("11.txt"); 208s1AFolder.CreateFile("a0.txt"); 209s1AFolder.CreateFile("a1.txt"); 211s1BFolder.CreateFile("b0.txt"); 264sourceFolder.CreateFile("source.txt"); 266aDirectory.CreateFile("a.txt"); 2524var source = env.DefaultTestDirectory.CreateFile("source.txt", "This is a source file").Path; 2525var existing = env.DefaultTestDirectory.CreateFile("destination.txt", "This is an existing file.").Path;
CreateCSharpManifestResourceName_Tests.cs (2)
457var csFile = subfolder.CreateFile("SR1.cs", "namespace MyStuff.Namespace { class Class { } }"); 458var resXFile = subfolder.CreateFile("SR1.resx", "");
HintPathResolver_Tests.cs (1)
44tempfolder.CreateFile("FakeSystem.Net.Http.dll");
ResourceHandling\GenerateResource_Tests.cs (1)
3919var dll = folder.CreateFile("System.Resource.Extensions.dll");
ResourceHandling\MSBuildResXReader_Tests.cs (2)
161var linkedTextFile = resourceHandlingFolder.CreateFile("TextFileInShiftJIS.txt"); 296var linkedTextFile = resourceHandlingFolder.CreateFile("FileToBeIncluded.txt");
Unzip_Tests.cs (2)
117subDir.CreateFile("F83E9633685494E53BEF3794EDEEE6A6.txt", "file3"); 118subDir.CreateFile("21D6D4596067723B3AC5DF9A8B3CBFE7.txt", "file4");