49 references to FileSystems
Microsoft.Build.Utilities.Core (48)
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))
ExceptionHandling.cs (1)
391IEnumerable<string> files = FileSystems.Default.EnumerateFiles(DebugDumpPath, "MSBuild*failure.txt");
FileMatcher.cs (1)
85public static FileMatcher Default = new FileMatcher(FileSystems.Default, null);
FileUtilities.cs (1)
122private static readonly IFileSystem DefaultFileSystem = FileSystems.Default;
FrameworkLocationHelper.cs (6)
922if (FileSystems.Default.DirectoryExists(combinedPath)) 1092if (FileSystems.Default.DirectoryExists(programFilesReferenceAssemblyDirectory)) 1395(!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, NativeMethodsShared.IsWindows ? "MSBuild.exe" : "mcs.exe")) && 1396!FileSystems.Default.FileExists(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll")))) 1431if (!string.IsNullOrEmpty(frameworkPath) && FileSystems.Default.DirectoryExists(frameworkPath)) 1533if (FileSystems.Default.DirectoryExists(referencePath))
InprocTrackingNativeMethods.cs (1)
210if (!FileSystems.Default.FileExists(fileTrackerPath))
Modifiers.cs (2)
528if (FileSystems.Default.FileExists(unescapedItemSpec)) 544if (FileSystems.Default.FileExists(unescapedItemSpec))
PlatformManifest.cs (1)
96if (FileSystems.Default.FileExists(platformManifestPath))
SDKManifest.cs (1)
315if (FileSystems.Default.FileExists(sdkManifestPath))
TempFileUtilities.cs (2)
188ErrorUtilities.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique"); 234if (FileSystems.Default.DirectoryExists(Path))
ToolLocationHelper.cs (17)
847if (FileSystems.Default.DirectoryExists(propsFileLocation)) 1036if (!FileSystems.Default.DirectoryExists(winmdLocation)) 1134if (FileSystems.Default.DirectoryExists(contractPath)) 1498if (!FileSystems.Default.FileExists(fullPath)) 1761if (FileSystems.Default.FileExists(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll"))) 1835if (legacyMsCorlib20Path != null && FileSystems.Default.FileExists(Path.Combine(legacyMsCorlib20Path, "mscorlib.dll"))) 1852if (FileSystems.Default.FileExists(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll"))) 2330if (FileSystems.Default.DirectoryExists(path)) 2626bool platformSDKManifestExists = FileSystems.Default.FileExists(platformSDKManifest); 2898if (FileSystems.Default.DirectoryExists(localAppdataFolder)) 3113if (!FileSystems.Default.FileExists(redistFilePath)) 3198if (!FileSystems.Default.DirectoryExists(pathToReturn)) 3204else if (!string.IsNullOrEmpty(redirectPath) && FileSystems.Default.DirectoryExists(redirectPath)) 3587if (!FileSystems.Default.FileExists(toolPath)) 3804if (FileSystems.Default.DirectoryExists(dotNetFx20Path)) 3951if (FileSystems.Default.DirectoryExists(dotNextFx30RefPath)) 3958if (FileSystems.Default.DirectoryExists(dotNextFx35RefPath))
ToolTask.cs (5)
518if (string.IsNullOrWhiteSpace(pathToTool) || (ToolPath == null && !FileSystems.Default.FileExists(pathToTool))) 539bool isExistingFile = FileSystems.Default.FileExists(pathToTool); 1324return FileSystems.Default.DirectoryExists(path); 1332.FirstOrDefault(fullPath => !string.IsNullOrEmpty(fullPath) && FileSystems.Default.FileExists(fullPath)); 1614if (_temporaryBatchFile != null && FileSystems.Default.FileExists(_temporaryBatchFile))
TrackedDependencies\FileTracker.cs (3)
406if (FileSystems.Default.FileExists(trackerPath)) 506if (!FileSystems.Default.FileExists(trackerPath)) 553if (FileSystems.Default.FileExists(progfilesPath))
TrackedDependencies\FlatTrackingData.cs (1)
646if (!FileSystems.Default.DirectoryExists(markerDirectory))
TrackedDependencies\TrackedDependencies.cs (1)
46if (!FileMatcher.HasWildcards(directoryName) && FileSystems.Default.DirectoryExists(directoryName))
Microsoft.Build.Utilities.UnitTests (1)
TestAssemblyInfo.cs (1)
111if (FileSystems.Default.FileExists(potentialVersionsPropsPath))