37 references to FileSystems
Microsoft.Build.CommandLine.UnitTests (1)
TestAssemblyInfo.cs (1)
122if (FileSystems.Default.FileExists(potentialVersionsPropsPath))
MSBuild (36)
BuildEnvironmentHelper.cs (6)
213if (FileSystems.Default.FileExists(msBuildExe)) 217else if (FileSystems.Default.FileExists(msBuildDll)) 273vsVersion != CurrentVisualStudioVersion || !FileSystems.Default.DirectoryExists(vsInstallDir)) 298.Where(i => i.Version.Major == v.Major && FileSystems.Default.DirectoryExists(i.Path)) 341if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.Default.FileExists(msBuildExePath)) 611var existsCheck = mode == BuildEnvironmentMode.VisualStudio ? new Func<string, bool>(_ => true) : FileSystems.Default.FileExists;
DebugUtils.cs (1)
116while (FileSystems.Default.FileExists(fullPath))
ExceptionHandling.cs (3)
412IEnumerable<string> files = FileSystems.Default.EnumerateFiles(DebugDumpPath, "MSBuild*failure.txt"); 416if (FileSystems.Default.GetLastWriteTimeUtc(file) >= fromTimeUtc) 422builder.Append(FileSystems.Default.ReadFileAllText(file));
FileUtilities.cs (3)
81return !FileSystems.Default.FileExists(lowerCased); 135private static readonly IFileSystem DefaultFileSystem = FileSystems.Default; 751foreach (string dir in FileSystems.Default.EnumerateDirectories(directory))
Modifiers.cs (2)
329if (FileSystems.Default.FileExists(unescapedItemSpec)) 345if (FileSystems.Default.FileExists(unescapedItemSpec))
ProjectSchemaValidationHandler.cs (1)
49if (FileSystems.Default.FileExists(schemaFile))
TaskEngineAssemblyResolver.cs (1)
106if (FileSystems.Default.FileExists(_taskAssemblyFile))
TaskFactoryUtilities.cs (8)
156if (!string.IsNullOrEmpty(assemblyPath) && FileSystems.Default.FileExists(assemblyPath)) 182Assembly assembly = Assembly.Load(FileSystems.Default.ReadFileAllBytes(assemblyPath)); 206if (!FileSystems.Default.FileExists(manifestPath)) 251if (FileSystems.Default.DirectoryExists(processSpecificInlineTaskDir)) 273if (FileSystems.Default.FileExists(path)) 275return Assembly.Load(FileSystems.Default.ReadFileAllBytes(path)); 281if (FileSystems.Default.FileExists(path)) 283return Assembly.Load(FileSystems.Default.ReadFileAllBytes(path));
TempFileUtilities.cs (2)
188ErrorUtilities.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique"); 234if (FileSystems.Default.DirectoryExists(Path))
XMake.cs (9)
381if (!FileSystems.Default.FileExists(path)) 2240else if (!FileSystems.Default.FileExists(responseFile)) 2473if (FileSystems.Default.FileExists(autoResponseFile)) 3103if (FileSystems.Default.DirectoryExists(projectFile)) 3110InitializationException.VerifyThrow(FileSystems.Default.FileExists(projectFile), "ProjectNotFoundError", projectFile); 3607if (FileSystems.Default.DirectoryExists(projectFile)) 3616InitializationException.VerifyThrow(FileSystems.Default.FileExists(projectFile), "ProjectNotFoundError", projectFile); 4472if (FileSystems.Default.FileExists(testFile)) 4630InitializationException.VerifyThrow(FileSystems.Default.FileExists(fileName), "SchemaNotFoundError", fileName);