491 references to FileUtilities
Microsoft.Build.Tasks.Core (165)
AppConfig\AppConfig.cs (1)
32
appConfigFilePath =
FileUtilities
.NormalizePath(appConfigFilePath);
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigCache.cs (1)
49
.Where(assemblyFolder =>
FileUtilities
.DirectoryExistsNoThrow(assemblyFolder.DirectoryPath))
AssemblyDependency\CandidateAssemblyFilesResolver.cs (1)
63
bool allowedExtension =
FileUtilities
.HasExtension(candidateAssemblyFile, executableExtensions);
AssemblyDependency\GenerateBindingRedirects.cs (1)
138
using (var stream =
FileUtilities
.OpenWrite(OutputAppConfigFile.ItemSpec, false))
AssemblyDependency\HintPathResolver.cs (2)
45
if (!string.IsNullOrEmpty(hintPath) && !
FileUtilities
.PathIsInvalid(hintPath))
47
if (ResolveAsFile(
FileUtilities
.NormalizePath(hintPath), assemblyName, isPrimaryProjectReference, wantSpecificVersion, true, assembliesConsideredAndRejected))
AssemblyDependency\Reference.cs (1)
524
_fullPath =
FileUtilities
.NormalizePath(_fullPath);
AssemblyDependency\ReferenceTable.cs (4)
852
name = item.GetMetadata(
FileUtilities
.ItemSpecModifiers.Filename);
1336
resolvedPath =
FileUtilities
.NormalizePath(resolvedPath);
1701
string referenceDirectoryName =
FileUtilities
.EnsureTrailingSlash(reference.DirectoryName);
2762
item.SetMetadata(ItemMetadataNames.destinationSubDirectory,
FileUtilities
.EnsureTrailingSlash(Path.GetDirectoryName(satelliteFile)));
AssemblyDependency\ResolveAssemblyReference.cs (4)
1496
if (
FileUtilities
.HasExtension(file, _allowedAssemblyExtensions))
2196
_targetFrameworkDirectories[i] =
FileUtilities
.EnsureTrailingSlash(_targetFrameworkDirectories[i]);
3210
p =>
FileUtilities
.FileExistsNoThrow(p),
3211
p =>
FileUtilities
.DirectoryExistsNoThrow(p),
AssignLinkMetadata.cs (3)
47
string definingProject = item.GetMetadata(
FileUtilities
.ItemSpecModifiers.DefiningProjectFullPath);
48
string definingProjectDirectory = item.GetMetadata(
FileUtilities
.ItemSpecModifiers.DefiningProjectDirectory);
49
string fullPath = item.GetMetadata(
FileUtilities
.ItemSpecModifiers.FullPath);
AssignTargetPath.cs (1)
58
fullRootPath =
FileUtilities
.EnsureTrailingSlash(fullRootPath);
BuildEnvironmentHelper.cs (9)
150
var vsRoot =
FileUtilities
.GetFolderAbove(vsProcess, 3);
202
var msBuildExe = Path.Combine(
FileUtilities
.GetFolderAbove(buildAssembly), "MSBuild.exe");
203
var msBuildDll = Path.Combine(
FileUtilities
.GetFolderAbove(buildAssembly), "MSBuild.dll");
360
return
FileUtilities
.GetFolderAbove(msBuildAssembly,
369
return
FileUtilities
.CombinePaths(
445
return
FileUtilities
.ExecutingAssemblyPath;
604
var potentialAmd64FromX86 =
FileUtilities
.CombinePaths(MSBuildToolsDirectoryRoot, "amd64", msBuildExeName);
605
var potentialARM64FromX86 =
FileUtilities
.CombinePaths(MSBuildToolsDirectoryRoot, "arm64", msBuildExeName);
677
defaultSdkPath =
FileUtilities
.CombinePaths(VisualStudioInstallRootDirectory, "MSBuild", "Sdks");
Copy.cs (4)
294
FileUtilities
.DeleteNoThrow(destinationFileState.Name);
754
string src =
FileUtilities
.NormalizePath(sourceFolder.ItemSpec);
1038
if (string.Equals(source.Name, destination.Name,
FileUtilities
.PathComparison))
1045
return string.Equals(source.FileNameFullPath, destination.FileNameFullPath,
FileUtilities
.PathComparison);
CreateCSharpManifestResourceName.cs (3)
97
string embeddedFileName =
FileUtilities
.FixFilePath(linkFileName);
100
embeddedFileName =
FileUtilities
.FixFilePath(fileName);
103
dependentUponFileName =
FileUtilities
.FixFilePath(dependentUponFileName);
CreateItem.cs (2)
119
if (
FileUtilities
.ItemSpecModifiers.IsItemSpecModifier(nameAndValue.Key))
193
newItem.SetMetadata(
FileUtilities
.ItemSpecModifiers.RecursiveDir, match.wildcardDirectoryPart);
CreateVisualBasicManifestResourceName.cs (1)
102
dependentUponFileName =
FileUtilities
.FixFilePath(dependentUponFileName);
DebugUtils.cs (5)
32
string environmentDebugPath =
FileUtilities
.TrimAndStripAnyQuotes(Environment.GetEnvironmentVariable("MSBUILDDEBUGPATH"));
37
if (!string.IsNullOrWhiteSpace(debugDirectory) &&
FileUtilities
.CanWriteToDirectory(debugDirectory))
41
else if (
FileUtilities
.CanWriteToDirectory(Directory.GetCurrentDirectory()))
47
debugDirectory = Path.Combine(
FileUtilities
.TempFileDirectory, "MSBuild_Logs");
59
FileUtilities
.EnsureDirectoryExists(debugDirectory);
Delete.cs (1)
107
var deletedFilesSet = new HashSet<string>(
FileUtilities
.PathComparer);
DependencyFile.cs (2)
64
this.filename =
FileUtilities
.FixFilePath(filename);
87
FileInfo info =
FileUtilities
.GetFileInfoNoThrow(filename);
ErrorUtilities.cs (1)
543
if (
FileUtilities
.PathIsInvalid(parameter))
ExceptionHandling.cs (3)
74
:
FileUtilities
.TempFileDirectory;
359
using (StreamWriter writer =
FileUtilities
.OpenWrite(s_dumpFileName, append: true))
366
using (StreamWriter writer =
FileUtilities
.OpenWrite(s_dumpFileName, append: true))
Exec.cs (2)
202
_batchFile =
FileUtilities
.GetTemporaryFileName(".exec.cmd");
211
using (StreamWriter sw =
FileUtilities
.OpenWrite(_batchFile, false, encoding))
FileIO\WriteLinesToFile.cs (2)
99
var directoryPath = Path.GetDirectoryName(
FileUtilities
.NormalizePath(File.ItemSpec));
111
if (
FileUtilities
.FileExistsNoThrow(File.ItemSpec))
FileMatcher.cs (17)
39
internal static readonly char[] directorySeparatorCharacters =
FileUtilities
.Slashes;
224
path =
FileUtilities
.FixFilePath(path);
588
filespec =
FileUtilities
.FixFilePath(filespec);
862
Debug.Assert(
FileUtilities
.PathsEqual(searchToExclude.BaseDirectory, recursionState.BaseDirectory), "Expected exclude search base directory to match include search base directory");
1237
bool isSurroundedBySlashes = (i == 0 ||
FileUtilities
.IsAnySlash(str[i - 1]))
1238
&& i < str.Length - 2 &&
FileUtilities
.IsAnySlash(str[i + 2]);
1374
else if (
FileUtilities
.IsAnySlash(ch))
1419
if (startIndex >= str.Length || !
FileUtilities
.IsAnySlash(str[startIndex]))
1428
bool isSeparator = i < str.Length - 1 &&
FileUtilities
.IsAnySlash(str[i + 1]);
1429
bool isRelativeSeparator = i < str.Length - 2 && str[i + 1] == '.' &&
FileUtilities
.IsAnySlash(str[i + 2]);
2127
FileUtilities
.IsAnySlash(wildcard[2]) &&
2128
FileUtilities
.IsAnySlash(wildcard[wildcardLength - 3]) &&
2133
if (wildcard.IndexOfAny(
FileUtilities
.Slashes, 3, wildcardLength - 6) == -1)
2294
if (!
FileUtilities
.IsAnySlash(directoryPart[i]))
2324
while (index < aString.Length &&
FileUtilities
.IsAnySlash(aString[index]))
2341
if (
FileUtilities
.PathsEqual(filespecUnescaped, excludeSpec))
2657
int index = directoryPath.LastIndexOfAny(
FileUtilities
.Slashes);
FileState.cs (1)
86
_filename =
FileUtilities
.AttemptToShortenPath(filename); // This is no-op unless the path actually is too long
FileUtilities.cs (1)
747
internal static string ExecutingAssemblyPath => Path.GetFullPath(AssemblyUtilities.GetAssemblyLocation(typeof(
FileUtilities
).GetTypeInfo().Assembly));
FindInList.cs (1)
107
var path =
FileUtilities
.FixFilePath(item.ItemSpec);
GenerateResource.cs (15)
2599
_logger.LogErrorWithCodeFromResources(null,
FileUtilities
.GetFullPathNoThrow(inFile), 0, 0, 0, 0,
2605
_logger.LogErrorWithCodeFromResources(null,
FileUtilities
.GetFullPathNoThrow(inFile), 0, 0, 0, 0,
2613
_logger.LogErrorWithCodeFromResources(null,
FileUtilities
.GetFullPathNoThrow(inFile), xe.LineNumber,
2618
_logger.LogErrorWithCodeFromResources(null,
FileUtilities
.GetFullPathNoThrow(inFile), 0, 0, 0, 0,
2632
_logger.LogErrorWithCodeFromResources(null,
FileUtilities
.GetFullPathNoThrow(inFile), xe.LineNumber,
2643
_logger.LogErrorWithCodeFromResources(null,
FileUtilities
.GetFullPathNoThrow(inFile), 0, 0, 0, 0,
2648
FileUtilities
.GetFullPathNoThrow(inFile));
2654
_logger.LogErrorWithCodeFromResources(null,
FileUtilities
.GetFullPathNoThrow(inFile), 0, 0, 0, 0,
2767
FileUtilities
.GetFullPathNoThrow(currentOutputFile), io.Message);
2801
FileUtilities
.GetFullPathNoThrow(inFile), e.Message); // Input file is more useful to log
2805
FileUtilities
.GetFullPathNoThrow(inFile));
2812
FileUtilities
.GetFullPathNoThrow(currentOutputFile), e.Message);
2890
_logger.LogMessageFromResources("GenerateResource.CorruptOutput",
FileUtilities
.GetFullPathNoThrow(filename));
2897
_logger.LogWarningWithCodeFromResources("GenerateResource.DeleteCorruptOutputFailed",
FileUtilities
.GetFullPathNoThrow(filename), deleteException.Message);
3804
using (StreamWriter writer =
FileUtilities
.OpenWrite(fileName, false, Encoding.UTF8))
GetSDKReferenceFiles.cs (13)
84
private string _cacheFilePath =
FileUtilities
.TempFileDirectory;
235
return Execute(AssemblyNameExtension.GetAssemblyNameEx, AssemblyInformation.GetRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: false);
516
if (
FileUtilities
.FileExistsNoThrow(xmlFile))
570
if (info.DirectoryToFileList != null && info.DirectoryToFileList.TryGetValue(
FileUtilities
.EnsureNoTrailingSlash(path), out List<string> referenceFiles) && referenceFiles != null)
622
if (
FileUtilities
.EnsureTrailingSlash(directoryToFileList.Key).StartsWith(
FileUtilities
.EnsureTrailingSlash(redistFilePath), StringComparison.OrdinalIgnoreCase))
629
string relativeToBase =
FileUtilities
.MakeRelative(redistFilePath, file);
1018
var cacheInfo = new SDKInfo(references, directoryToFileList,
FileUtilities
.GetPathsHash(directoriesToHash));
1084
int hash =
FileUtilities
.GetPathsHash(directoriesToHash);
1154
string identityHash =
FileUtilities
.GetHexHash(sdkIdentity);
1155
string rootHash =
FileUtilities
.GetHexHash(sdkRoot);
1166
if (
FileUtilities
.DirectoryExistsNoThrow(redistPath))
1180
if (
FileUtilities
.DirectoryExistsNoThrow(referencesPath))
ListOperators\FindUnderPath.cs (3)
62
System.IO.Path.GetFullPath(
FileUtilities
.FixFilePath(Path.ItemSpec)));
63
conePath =
FileUtilities
.EnsureTrailingSlash(conePath);
83
System.IO.Path.GetFullPath(
FileUtilities
.FixFilePath(item.ItemSpec)));
MakeDir.cs (2)
62
if (!
FileUtilities
.DirectoryExistsNoThrow(directory.ItemSpec))
73
Directory.CreateDirectory(
FileUtilities
.FixFilePath(directory.ItemSpec));
ManifestUtil\ManifestWriter.cs (1)
127
string temp =
FileUtilities
.GetTemporaryFileName();
ManifestUtil\Util.cs (2)
590
string path =
FileUtilities
.GetTemporaryFileName();
599
string path =
FileUtilities
.GetTemporaryFileName();
Modifiers.cs (31)
110
if (name ==
FileUtilities
.ItemSpecModifiers.RootDir)
126
if (name ==
FileUtilities
.ItemSpecModifiers.FullPath)
130
if (name ==
FileUtilities
.ItemSpecModifiers.Filename)
138
if (name ==
FileUtilities
.ItemSpecModifiers.Identity)
153
if (name ==
FileUtilities
.ItemSpecModifiers.Directory)
161
if (name ==
FileUtilities
.ItemSpecModifiers.Extension)
176
if (name ==
FileUtilities
.ItemSpecModifiers.CreatedTime)
184
if (name ==
FileUtilities
.ItemSpecModifiers.RelativeDir)
200
if (name ==
FileUtilities
.ItemSpecModifiers.AccessedTime)
208
if (name ==
FileUtilities
.ItemSpecModifiers.ModifiedTime)
216
if (name ==
FileUtilities
.ItemSpecModifiers.RecursiveDir)
256
if (name ==
FileUtilities
.ItemSpecModifiers.DefiningProjectName)
262
if (name ==
FileUtilities
.ItemSpecModifiers.DefiningProjectFullPath)
274
if (name ==
FileUtilities
.ItemSpecModifiers.DefiningProjectDirectory)
282
if (name ==
FileUtilities
.ItemSpecModifiers.DefiningProjectExtension)
392
if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.FullPath, StringComparison.OrdinalIgnoreCase))
409
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.RootDir, StringComparison.OrdinalIgnoreCase))
425
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.Filename, StringComparison.OrdinalIgnoreCase))
440
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.Extension, StringComparison.OrdinalIgnoreCase))
454
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.RelativeDir, StringComparison.OrdinalIgnoreCase))
458
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.Directory, StringComparison.OrdinalIgnoreCase))
495
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.RecursiveDir, StringComparison.OrdinalIgnoreCase))
500
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.Identity, StringComparison.OrdinalIgnoreCase))
504
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.ModifiedTime, StringComparison.OrdinalIgnoreCase))
510
FileInfo info =
FileUtilities
.GetFileInfoNoThrow(unescapedItemSpec);
522
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.CreatedTime, StringComparison.OrdinalIgnoreCase))
538
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.AccessedTime, StringComparison.OrdinalIgnoreCase))
563
if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.DefiningProjectDirectory, StringComparison.OrdinalIgnoreCase))
574
if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.DefiningProjectFullPath, StringComparison.OrdinalIgnoreCase))
578
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.DefiningProjectName, StringComparison.OrdinalIgnoreCase))
582
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.DefiningProjectExtension, StringComparison.OrdinalIgnoreCase))
MSBuild.cs (4)
282
string projectPath =
FileUtilities
.AttemptToShortenPath(project.ItemSpec);
310
if (
FileUtilities
.IsVCProjFilename(projectPath))
509
string projectPath =
FileUtilities
.AttemptToShortenPath(projects[i].ItemSpec);
654
outputItemFromTarget.SetMetadata(ItemMetadataNames.msbuildSourceProjectFile, projects[i].GetMetadata(
FileUtilities
.ItemSpecModifiers.FullPath));
PrintLineDebuggerWriters.cs (1)
74
var executingAssembly =
FileUtilities
.ExecutingAssemblyPath;
RedistList.cs (2)
942
Path =
FileUtilities
.NormalizeForPathComparison(path);
943
FrameworkDirectory =
FileUtilities
.NormalizeForPathComparison(frameworkDirectory);
ResGenDependencies.cs (1)
373
var outputFile = new FileInfo(
FileUtilities
.FixFilePath(outputFileName));
ResolveSDKReference.cs (1)
915
ResolvedPath =
FileUtilities
.EnsureTrailingSlash(sdk.ItemSpec);
ResourceHandling\MSBuildResXReader.cs (3)
226
string fileName =
FileUtilities
.FixFilePath(fileRefInfo[0]);
232
FileUtilities
.GetDirectory(
233
FileUtilities
.NormalizePath(resxFilename)),
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
679
string sourceCodePath =
FileUtilities
.GetTemporaryFileName(".tmp");
680
string assemblyPath =
FileUtilities
.GetTemporaryFileName(".dll");
SolutionConfiguration.cs (1)
60
projectAbsolutePath =
FileUtilities
.GetFullPathNoThrow(projectAbsolutePath);
SystemState.cs (2)
613
instanceLocalOutgoingFileStateCache = instanceLocalFileStateCache.ToDictionary(kvp =>
FileUtilities
.MakeRelative(Path.GetDirectoryName(stateFile), kvp.Key), kvp => kvp.Value);
617
if (
FileUtilities
.FileExistsNoThrow(stateFile))
TempFileUtilities.cs (1)
74
return
FileUtilities
.EnsureTrailingSlash(basePath);
Touch.cs (1)
94
string path =
FileUtilities
.FixFilePath(file.ItemSpec);
Unzip.cs (3)
163
string fullDestinationDirectoryPath = Path.GetFullPath(
FileUtilities
.EnsureTrailingSlash(destinationDirectory.FullName));
174
ErrorUtilities.VerifyThrowInvalidOperation(fullDestinationPath.StartsWith(fullDestinationDirectoryPath,
FileUtilities
.PathComparison), "Unzip.ZipSlipExploit", fullDestinationPath);
330
else if (pattern.IndexOfAny(
FileUtilities
.InvalidPathChars) != -1)
WriteCodeFragment.cs (2)
114
OutputFile ??= new TaskItem(
FileUtilities
.GetTemporaryFile(OutputDirectory.ItemSpec, null, extension));
116
FileUtilities
.EnsureDirectoryExists(Path.GetDirectoryName(OutputFile.ItemSpec));
Microsoft.Build.Tasks.UnitTests (326)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (1)
39
FileUtilities
.DeleteNoThrow(_rarCacheFile);
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (5)
2940
string appConfigFile =
FileUtilities
.GetTemporaryFileName() + appConfigNameSuffix;
3092
if (
FileUtilities
.FileExistsNoThrow(t.StateFile))
3115
FileUtilities
.DeleteNoThrow(redistListPath);
3120
FileUtilities
.DeleteNoThrow(rarCacheFile);
3150
string redistFile =
FileUtilities
.GetTemporaryFileName();
Copy_Tests.cs (80)
488
string file =
FileUtilities
.GetTemporaryFile();
491
using (StreamWriter sw =
FileUtilities
.OpenWrite(file, true)) // HIGHCHAR: Test writes in UTF8 without preamble.
532
string source =
FileUtilities
.GetTemporaryFile();
533
string destination =
FileUtilities
.GetTemporaryFile(null, ".tmp", false);
538
using (StreamWriter sw =
FileUtilities
.OpenWrite(source, true))
565
Assert.False(
FileUtilities
.FileExistsNoThrow(destination));
580
string source =
FileUtilities
.GetTemporaryFile();
581
string destination =
FileUtilities
.GetTemporaryFile();
587
using (StreamWriter sw =
FileUtilities
.OpenWrite(source, true))
592
using (StreamWriter sw =
FileUtilities
.OpenWrite(destination, true))
641
string source =
FileUtilities
.GetTemporaryFile();
642
string destination =
FileUtilities
.GetTemporaryFile();
645
using (StreamWriter sw =
FileUtilities
.OpenWrite(source, true))
650
using (StreamWriter sw =
FileUtilities
.OpenWrite(destination, true))
696
string source =
FileUtilities
.GetTemporaryFile();
697
string destination =
FileUtilities
.GetTemporaryFile();
700
using (StreamWriter sw =
FileUtilities
.OpenWrite(source, true))
705
using (StreamWriter sw =
FileUtilities
.OpenWrite(destination, true))
759
string source =
FileUtilities
.GetTemporaryFile();
760
string destination =
FileUtilities
.GetTemporaryFile();
767
using (StreamWriter sw =
FileUtilities
.OpenWrite(source, true))
772
using (StreamWriter sw =
FileUtilities
.OpenWrite(destination, true))
825
string source =
FileUtilities
.GetTemporaryFile();
826
string destination =
FileUtilities
.GetTemporaryFile();
834
using (StreamWriter sw =
FileUtilities
.OpenWrite(source, true))
839
using (StreamWriter sw =
FileUtilities
.OpenWrite(destination, true))
897
string source =
FileUtilities
.GetTemporaryFile();
898
string destination =
FileUtilities
.GetTemporaryFile();
901
using (StreamWriter sw =
FileUtilities
.OpenWrite(source, true))
906
using (StreamWriter sw =
FileUtilities
.OpenWrite(destination, true))
955
string source1 =
FileUtilities
.GetTemporaryFile();
956
string source2 =
FileUtilities
.GetTemporaryFile();
964
using (StreamWriter sw =
FileUtilities
.OpenWrite(source1, true))
969
using (StreamWriter sw =
FileUtilities
.OpenWrite(source2, true))
974
using (StreamWriter sw =
FileUtilities
.OpenWrite(destination1, true))
979
using (StreamWriter sw =
FileUtilities
.OpenWrite(destination2, true))
1026
FileUtilities
.DeleteWithoutTrailingBackslash(destinationFolder, true);
1040
string sourceFile =
FileUtilities
.GetTemporaryFile();
1041
string destinationFile =
FileUtilities
.GetTemporaryFile();
1044
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble.
1049
using (StreamWriter sw =
FileUtilities
.OpenWrite(destinationFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble.
1071
using (StreamReader sr =
FileUtilities
.OpenRead(destinationFile)) // HIGHCHAR: Test reads ASCII (not ANSI).
1104
var sourceFile =
FileUtilities
.GetTemporaryFile(env.DefaultTestDirectory.Path, null, "src", false);
1105
var destinationFile =
FileUtilities
.GetTemporaryFile(env.DefaultTestDirectory.Path, null, "dst", false);
1172
string sourceFile =
FileUtilities
.GetTemporaryFile();
1173
string destinationFile =
FileUtilities
.GetTemporaryFile();
1177
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble.
1182
using (StreamWriter sw =
FileUtilities
.OpenWrite(destinationFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble.
1222
string sourceFile =
FileUtilities
.GetTemporaryFile();
1263
string destinationFile =
FileUtilities
.GetTemporaryFile();
1267
using (StreamWriter sw =
FileUtilities
.OpenWrite(destinationFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble.
1310
string destinationFile =
FileUtilities
.GetTemporaryFile();
1314
using (StreamWriter sw =
FileUtilities
.OpenWrite(destinationFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble.
1363
using (StreamWriter sw =
FileUtilities
.OpenWrite(destinationFile, true)) // Keep it locked
1481
string destinationFile =
FileUtilities
.GetTemporaryFile();
1482
string sourceFile =
FileUtilities
.GetTemporaryFile();
1486
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true))
1528
string sourceFile =
FileUtilities
.GetTemporaryFile();
1532
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble.
1848
string sourceFile =
FileUtilities
.GetTemporaryFile();
1854
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble.
1881
using (StreamReader sr =
FileUtilities
.OpenRead(destFile))
1927
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble.
1953
using (StreamReader sr =
FileUtilities
.OpenRead(destFile))
1993
using (StreamWriter sw =
FileUtilities
.OpenWrite(item.ItemSpec, false)) // HIGHCHAR: Test writes in UTF8 without preamble.
2051
using (StreamWriter sw =
FileUtilities
.OpenWrite(item.ItemSpec, false)) // HIGHCHAR: Test writes in UTF8 without preamble.
2172
string sourceFile =
FileUtilities
.GetTemporaryFile();
2177
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble.
2217
string destinationFile =
FileUtilities
.GetTemporaryFile();
2456
Assert.Contains(copyFunctor.FilesCopiedSuccessfully, f => f.Name ==
FileUtilities
.FixFilePath("c:\\source"));
2457
Assert.Contains(copyFunctor.FilesCopiedSuccessfully, f => f.Name ==
FileUtilities
.FixFilePath("c:\\source2"));
2552
string sourceFile =
FileUtilities
.GetTemporaryFile();
2621
string sourceFile1 =
FileUtilities
.GetTemporaryFile();
2622
string sourceFile2 =
FileUtilities
.GetTemporaryFile();
2709
FileUtilities
.DeleteWithoutTrailingBackslash(destFolder, true);
2726
string sourceFile =
FileUtilities
.GetTemporaryFile();
2798
FileUtilities
.DeleteWithoutTrailingBackslash(destFolder, true);
2808
string sourceFile =
FileUtilities
.GetTemporaryFile();
2864
FileUtilities
.DeleteWithoutTrailingBackslash(destFolder, true);
2874
string sourceFile =
FileUtilities
.GetTemporaryFile();
CreateCSharpManifestResourceName_Tests.cs (1)
329
Assert.Equal(
FileUtilities
.FixFilePath(@"fr\RootNamespace.SubFolder.SplashScreen.bmp"), result);
Delete_Tests.cs (2)
48
string source =
FileUtilities
.GetTemporaryFile();
51
using (StreamWriter sw =
FileUtilities
.OpenWrite(source, true))
Exec_Tests.cs (6)
350
FileUtilities
.DeleteWithoutTrailingBackslash(newTmp);
388
FileUtilities
.DeleteWithoutTrailingBackslash(newTmp);
400
string newTmp = Path.Combine(
FileUtilities
.TempFileDirectory, directoryWithAmpersand);
425
FileUtilities
.DeleteWithoutTrailingBackslash(newTmp);
462
FileUtilities
.DeleteWithoutTrailingBackslash(newTmp);
605
FileUtilities
.DeleteWithoutTrailingBackslash(folder, true);
FileStateTests.cs (12)
62
file =
FileUtilities
.GetTemporaryFile();
81
file =
FileUtilities
.GetTemporaryFile();
108
file =
FileUtilities
.GetTemporaryFile();
127
file =
FileUtilities
.GetTemporaryFile();
146
file =
FileUtilities
.GetTemporaryFile();
165
file =
FileUtilities
.GetTemporaryFile();
184
file =
FileUtilities
.GetTemporaryFile();
210
file =
FileUtilities
.GetTemporaryFile();
236
file =
FileUtilities
.GetTemporaryFile();
262
file =
FileUtilities
.GetTemporaryFile();
290
file =
FileUtilities
.GetTemporaryFile();
315
file =
FileUtilities
.GetTemporaryFile();
FindAppConfigFile_Tests.cs (2)
51
Assert.Equal(
FileUtilities
.FixFilePath("foo\\app.config"), f.AppConfigFile.ItemSpec);
77
Assert.Equal(
FileUtilities
.FixFilePath(@"foo\\app.config"), f.AppConfigFile.ItemSpec);
FindInList_Tests.cs (2)
120
Assert.Equal(
FileUtilities
.FixFilePath(@"c:\foo\a.cs"), f.ItemFound.ItemSpec);
135
Assert.Equal(
FileUtilities
.FixFilePath(@"foo\a.cs"), f.ItemFound.ItemSpec);
FindUnderPath_Tests.cs (2)
35
Assert.Equal(
FileUtilities
.FixFilePath(@"C:\MyProject\File1.txt"), t.InPath[0].ItemSpec);
36
Assert.Equal(
FileUtilities
.FixFilePath(@"C:\SomeoneElsesProject\File2.txt"), t.OutOfPath[0].ItemSpec);
GetInstalledSDKLocations_Tests.cs (6)
32
if (
FileUtilities
.DirectoryExistsNoThrow(FakeSdkStructureRoot))
34
FileUtilities
.DeleteDirectoryNoThrow(FakeSdkStructureRoot, true);
37
if (
FileUtilities
.DirectoryExistsNoThrow(FakeSdkStructureRoot2))
39
FileUtilities
.DeleteDirectoryNoThrow(FakeSdkStructureRoot2, true);
104
FileUtilities
.DeleteDirectoryNoThrow(tempPath, true);
141
FileUtilities
.DeleteDirectoryNoThrow(tempPath, true);
GetSDKReference_Tests.cs (41)
41
if (
FileUtilities
.DirectoryExistsNoThrow(_fakeSDKStructureRoot))
43
FileUtilities
.DeleteDirectoryNoThrow(_fakeSDKStructureRoot, true);
202
if (
FileUtilities
.DirectoryExistsNoThrow(_cacheDirectory))
205
FileUtilities
.DeleteDirectoryNoThrow(_cacheDirectory, true);
215
if (
FileUtilities
.DirectoryExistsNoThrow(_cacheDirectory))
218
FileUtilities
.DeleteDirectoryNoThrow(_cacheDirectory, true);
243
t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true).ShouldBeTrue();
353
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
379
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
405
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
430
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
505
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
516
success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
527
success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
554
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
606
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
613
string cacheFile = sdkIdentity + ",Set=" +
FileUtilities
.GetHexHash(sdkIdentity) + "-" +
FileUtilities
.GetHexHash(sdkRoot) + ",Hash=*.dat";
630
bool success2 = t2.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
643
string cacheFile2 = sdkIdentity2 + ",Set=" +
FileUtilities
.GetHexHash(sdkIdentity2) + "-" +
FileUtilities
.GetHexHash(sdkRoot2) + ",Hash=*.dat";
649
string[] allCacheFiles = Directory.GetFiles(_cacheDirectory, sdkIdentity2 + ",Set=" +
FileUtilities
.GetHexHash(sdkIdentity2) + "*");
672
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
721
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
765
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
788
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
813
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
865
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
916
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
953
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
1015
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
1046
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
1078
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
1110
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
1139
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
1167
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
1195
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
1230
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
1276
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
1319
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
1365
bool success = t.Execute(_getAssemblyName, _getAssemblyRuntimeVersion, p =>
FileUtilities
.FileExistsNoThrow(p), synchronous: true);
HintPathResolver_Tests.cs (1)
73
fileExists: p =>
FileUtilities
.FileExistsNoThrow(p),
MakeDir_Tests.cs (5)
55
FileUtilities
.DeleteWithoutTrailingBackslash(dir);
113
FileUtilities
.DeleteWithoutTrailingBackslash(dir);
119
FileUtilities
.DeleteWithoutTrailingBackslash(dir2);
165
FileUtilities
.DeleteWithoutTrailingBackslash(dir);
222
FileUtilities
.DeleteWithoutTrailingBackslash(dir);
Move_Tests.cs (41)
24
string sourceFile =
FileUtilities
.GetTemporaryFile();
25
string destinationFile =
FileUtilities
.GetTemporaryFile();
29
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true))
69
string sourceFile =
FileUtilities
.GetTemporaryFile();
70
string destinationFile =
FileUtilities
.GetTemporaryFile();
74
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true))
122
string sourceFile =
FileUtilities
.GetTemporaryFile();
123
string destinationFile =
FileUtilities
.GetTemporaryFile();
128
using (StreamWriter sw =
FileUtilities
.OpenWrite(destinationFile, true))
150
using (StreamReader sr =
FileUtilities
.OpenRead(destinationFile))
170
string sourceFile =
FileUtilities
.GetTemporaryFile();
173
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true))
205
string sourceFile =
FileUtilities
.GetTemporaryFile();
206
string destinationFile =
FileUtilities
.GetTemporaryFile();
209
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true))
214
using (StreamWriter sw =
FileUtilities
.OpenWrite(destinationFile, true))
235
using (StreamReader sr =
FileUtilities
.OpenRead(destinationFile))
260
string sourceFile =
FileUtilities
.GetTemporaryFile();
261
string destinationFile =
FileUtilities
.GetTemporaryFile();
264
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true))
269
using (StreamWriter sw =
FileUtilities
.OpenWrite(destinationFile, true))
287
using (StreamReader sr =
FileUtilities
.OpenRead(destinationFile))
312
string sourceFile =
FileUtilities
.GetTemporaryFile();
313
string destinationFile =
FileUtilities
.GetTemporaryFile();
316
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true))
321
using (StreamWriter sw =
FileUtilities
.OpenWrite(destinationFile, true))
343
using (StreamReader sr =
FileUtilities
.OpenRead(destinationFile))
366
string sourceFile =
FileUtilities
.GetTemporaryFile();
367
string destinationFile =
FileUtilities
.GetTemporaryFile();
370
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true))
375
using (StreamWriter sw =
FileUtilities
.OpenWrite(destinationFile, true))
397
using (StreamReader sr =
FileUtilities
.OpenRead(destinationFile))
503
file =
FileUtilities
.GetTemporaryFileName();
507
using (StreamWriter writer =
FileUtilities
.OpenWrite(file, false)) // lock it for write
680
string sourceFile =
FileUtilities
.GetTemporaryFile();
686
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true))
707
using (StreamReader sr =
FileUtilities
.OpenRead(destFile))
723
FileUtilities
.DeleteWithoutTrailingBackslash(destFolder);
785
string sourceFile =
FileUtilities
.GetTemporaryFile();
790
using (StreamWriter sw =
FileUtilities
.OpenWrite(sourceFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble.
822
string destinationFile =
FileUtilities
.GetTemporaryFile();
NativeMethodsShared_Tests.cs (3)
77
string nonexistentFile =
FileUtilities
.GetTemporaryFileName();
90
string directory =
FileUtilities
.GetTemporaryDirectory(createDirectory: true);
103
string file =
FileUtilities
.GetTemporaryFile();
OutputPathTests.cs (1)
185
var expectedOutputPath =
FileUtilities
.CombinePaths(project.DirectoryPath, baseOutputPath, configuration).WithTrailingSlash();
ReadLinesFromFile_Tests.cs (5)
28
var file =
FileUtilities
.GetTemporaryFileName();
75
var file =
FileUtilities
.GetTemporaryFileName();
120
var file =
FileUtilities
.GetTemporaryFileName();
153
var file =
FileUtilities
.GetTemporaryFileName();
172
var file =
FileUtilities
.GetTemporaryFileName();
ResolveCodeAnalysisRuleSet_Tests.cs (1)
46
FileUtilities
.DeleteWithoutTrailingBackslash(_path, recursive: true);
ResolveSDKReference_Tests.cs (91)
180
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
263
FileUtilities
.DeleteNoThrow(sdkManifestFile);
305
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
488
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
519
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
592
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
622
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
647
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
679
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
705
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
735
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
760
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
790
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
815
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
845
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
870
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
902
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
927
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
957
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
981
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1011
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1036
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1066
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1502
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1539
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1561
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1594
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1658
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1697
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1738
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1782
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1820
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1880
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1915
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1953
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
1986
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2022
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2051
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2088
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2124
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2163
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2193
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2231
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2263
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2301
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2334
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2373
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2406
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2442
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2476
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2516
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2550
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2581
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2615
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2648
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2682
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2712
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2747
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2780
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2828
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2878
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2926
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
2976
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3032
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3089
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3137
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3187
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3230
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3269
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3304
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3346
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3380
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3412
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3448
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3490
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3524
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3554
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3587
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3626
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3661
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3690
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3771
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3840
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3912
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
3983
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
4034
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
4093
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
4138
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
4190
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
4277
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
4322
FileUtilities
.DeleteDirectoryNoThrow(testDirectoryRoot, true);
ResourceHandling\GenerateResource_Tests.cs (10)
960
additionalInputs = new ITaskItem[] { new TaskItem(
FileUtilities
.GetTemporaryFile()), new TaskItem(
FileUtilities
.GetTemporaryFile()) };
1410
strFile =
FileUtilities
.GetTemporaryFile();
1624
FileUtilities
.DeleteNoThrow(bitmap);
1625
FileUtilities
.DeleteNoThrow(resxFile);
1627
FileUtilities
.DeleteNoThrow(t.StronglyTypedFileName);
1630
FileUtilities
.DeleteNoThrow(item.ItemSpec);
2617
t.StateFile = new TaskItem(
FileUtilities
.GetTemporaryFile());
3024
FileUtilities
.DeleteWithoutTrailingBackslash(dir);
4186
string f =
FileUtilities
.GetTemporaryFileName();
TestAssemblyInfo.cs (1)
76
FileUtilities
.ClearTempFileDirectory();
WriteCodeFragment_Tests.cs (1)
188
FileUtilities
.DeleteWithoutTrailingBackslash(folder, true);
WriteLinesToFile_Tests.cs (5)
52
var file =
FileUtilities
.GetTemporaryFile();
102
var file =
FileUtilities
.GetTemporaryFile();
185
var file =
FileUtilities
.GetTemporaryFile();
252
var fileExists =
FileUtilities
.GetTemporaryFile();
253
var fileNotExists =
FileUtilities
.GetTemporaryFileName();
XslTransformation_Tests.cs (1)
1151
FileUtilities
.DeleteWithoutTrailingBackslash(dir, true);