25 references to FileSystems
Microsoft.Build.CommandLine.UnitTests (1)
TestAssemblyInfo.cs (1)
111if (FileSystems.Default.FileExists(potentialVersionsPropsPath))
MSBuild (24)
BuildEnvironmentHelper.cs (5)
214if (FileSystems.Default.FileExists(msBuildExe)) 218else if (FileSystems.Default.FileExists(msBuildDll)) 274vsVersion != CurrentVisualStudioVersion || !FileSystems.Default.DirectoryExists(vsInstallDir)) 299.Where(i => i.Version.Major == v.Major && FileSystems.Default.DirectoryExists(i.Path)) 342if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.Default.FileExists(msBuildExePath))
CoreCLRAssemblyLoader.cs (1)
164!FileSystems.Default.FileExists(candidatePath))
ExceptionHandling.cs (1)
391IEnumerable<string> files = FileSystems.Default.EnumerateFiles(DebugDumpPath, "MSBuild*failure.txt");
FileUtilities.cs (1)
122private static readonly IFileSystem DefaultFileSystem = FileSystems.Default;
Modifiers.cs (2)
528if (FileSystems.Default.FileExists(unescapedItemSpec)) 544if (FileSystems.Default.FileExists(unescapedItemSpec))
MSBuildLoadContext.cs (2)
81if (!FileSystems.Default.FileExists(candidatePath)) 102if (FileSystems.Default.FileExists(assemblyNameInExecutableDirectory))
TaskEngineAssemblyResolver.cs (1)
106if (FileSystems.Default.FileExists(_taskAssemblyFile))
TempFileUtilities.cs (2)
188ErrorUtilities.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique"); 234if (FileSystems.Default.DirectoryExists(Path))
XMake.cs (9)
408if (!FileSystems.Default.FileExists(path)) 2211else if (!FileSystems.Default.FileExists(responseFile)) 2444if (FileSystems.Default.FileExists(autoResponseFile)) 3033if (FileSystems.Default.DirectoryExists(projectFile)) 3040InitializationException.VerifyThrow(FileSystems.Default.FileExists(projectFile), "ProjectNotFoundError", projectFile); 3523if (FileSystems.Default.DirectoryExists(projectFile)) 3532InitializationException.VerifyThrow(FileSystems.Default.FileExists(projectFile), "ProjectNotFoundError", projectFile); 4360if (FileSystems.Default.FileExists(testFile)) 4518InitializationException.VerifyThrow(FileSystems.Default.FileExists(fileName), "SchemaNotFoundError", fileName);