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