3 implementations of FileExists
Microsoft.Build.Utilities.Core (3)
CachingFileSystemWrapper.cs (1)
44public bool FileExists(string path)
ManagedFileSystem.cs (1)
142public virtual bool FileExists(string path)
MSBuildOnWindowsFileSystem.cs (1)
76public bool FileExists(string path)
27 references to FileExists
Microsoft.Build.Utilities.Core (26)
BuildEnvironmentHelper.cs (3)
213if (FileSystems.Default.FileExists(msBuildExe)) 217else if (FileSystems.Default.FileExists(msBuildDll)) 341if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.Default.FileExists(msBuildExePath))
CachingFileSystemWrapper.cs (1)
46return CachedExistenceCheck(path, p => _fileSystem.FileExists(p));
FileUtilities.cs (3)
1058? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.FileExists(fullPath)) 1059: fileSystem.FileExists(fullPath); 1486if (fileSystem.FileExists(possibleFileDirectory))
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 (1)
188ErrorUtilities.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique");
ToolLocationHelper.cs (6)
1497if (!FileSystems.Default.FileExists(fullPath)) 1760if (FileSystems.Default.FileExists(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll"))) 1834if (legacyMsCorlib20Path != null && FileSystems.Default.FileExists(Path.Combine(legacyMsCorlib20Path, "mscorlib.dll"))) 1851if (FileSystems.Default.FileExists(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll"))) 2625bool platformSDKManifestExists = FileSystems.Default.FileExists(platformSDKManifest); 3112if (!FileSystems.Default.FileExists(redistFilePath))
ToolTask.cs (4)
518if (string.IsNullOrWhiteSpace(pathToTool) || (ToolPath == null && !FileSystems.Default.FileExists(pathToTool))) 539bool isExistingFile = FileSystems.Default.FileExists(pathToTool); 1334.FirstOrDefault(fullPath => !string.IsNullOrEmpty(fullPath) && FileSystems.Default.FileExists(fullPath)); 1616if (_temporaryBatchFile != null && FileSystems.Default.FileExists(_temporaryBatchFile))
TrackedDependencies\FileTracker.cs (3)
434if (FileSystems.Default.FileExists(trackerPath)) 534if (!FileSystems.Default.FileExists(trackerPath)) 581if (FileSystems.Default.FileExists(progfilesPath))
Microsoft.Build.Utilities.UnitTests (1)
TestAssemblyInfo.cs (1)
111if (FileSystems.Default.FileExists(potentialVersionsPropsPath))