16 references to FileSystems
Microsoft.Build.Engine.OM.UnitTests (16)
BuildEnvironmentHelper.cs (6)
213
if (
FileSystems
.Default.FileExists(msBuildExe))
217
else if (
FileSystems
.Default.FileExists(msBuildDll))
273
vsVersion != CurrentVisualStudioVersion || !
FileSystems
.Default.DirectoryExists(vsInstallDir))
298
.Where(i => i.Version.Major == v.Major &&
FileSystems
.Default.DirectoryExists(i.Path))
341
if (!string.IsNullOrEmpty(msBuildExePath) &&
FileSystems
.Default.FileExists(msBuildExePath))
611
var existsCheck = mode == BuildEnvironmentMode.VisualStudio ? new Func<string, bool>(_ => true) :
FileSystems
.Default.FileExists;
DebugUtils.cs (1)
116
while (
FileSystems
.Default.FileExists(fullPath))
ExceptionHandling.cs (3)
412
IEnumerable<string> files =
FileSystems
.Default.EnumerateFiles(DebugDumpPath, "MSBuild*failure.txt");
416
if (
FileSystems
.Default.GetLastWriteTimeUtc(file) >= fromTimeUtc)
422
builder.Append(
FileSystems
.Default.ReadFileAllText(file));
FileUtilities.cs (3)
81
return !
FileSystems
.Default.FileExists(lowerCased);
135
private static readonly IFileSystem DefaultFileSystem =
FileSystems
.Default;
751
foreach (string dir in
FileSystems
.Default.EnumerateDirectories(directory))
TempFileUtilities.cs (2)
188
ErrorUtilities.VerifyThrow(!
FileSystems
.Default.FileExists(file), "Guid should be unique");
234
if (
FileSystems
.Default.DirectoryExists(Path))
TestAssemblyInfo.cs (1)
122
if (
FileSystems
.Default.FileExists(potentialVersionsPropsPath))