3 implementations of FileExists
Microsoft.Build.Utilities.Core (3)
CachingFileSystemWrapper.cs (1)
44
public bool
FileExists
(string path)
ManagedFileSystem.cs (1)
144
public virtual bool
FileExists
(string path)
MSBuildOnWindowsFileSystem.cs (1)
76
public bool
FileExists
(string path)
27 references to FileExists
Microsoft.Build.Utilities.Core (26)
BuildEnvironmentHelper.cs (3)
213
if (FileSystems.Default.
FileExists
(msBuildExe))
217
else if (FileSystems.Default.
FileExists
(msBuildDll))
341
if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.Default.
FileExists
(msBuildExePath))
CachingFileSystemWrapper.cs (1)
46
return CachedExistenceCheck(path, p => _fileSystem.
FileExists
(p));
FileUtilities.cs (3)
1058
? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.
FileExists
(fullPath))
1059
: fileSystem.
FileExists
(fullPath);
1486
if (fileSystem.
FileExists
(possibleFileDirectory))
InprocTrackingNativeMethods.cs (1)
210
if (!FileSystems.Default.
FileExists
(fileTrackerPath))
Modifiers.cs (2)
528
if (FileSystems.Default.
FileExists
(unescapedItemSpec))
544
if (FileSystems.Default.
FileExists
(unescapedItemSpec))
PlatformManifest.cs (1)
96
if (FileSystems.Default.
FileExists
(platformManifestPath))
SDKManifest.cs (1)
315
if (FileSystems.Default.
FileExists
(sdkManifestPath))
TempFileUtilities.cs (1)
188
ErrorUtilities.VerifyThrow(!FileSystems.Default.
FileExists
(file), "Guid should be unique");
ToolLocationHelper.cs (6)
1502
if (!FileSystems.Default.
FileExists
(fullPath))
1765
if (FileSystems.Default.
FileExists
(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll")))
1839
if (legacyMsCorlib20Path != null && FileSystems.Default.
FileExists
(Path.Combine(legacyMsCorlib20Path, "mscorlib.dll")))
1856
if (FileSystems.Default.
FileExists
(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll")))
2631
bool platformSDKManifestExists = FileSystems.Default.
FileExists
(platformSDKManifest);
3118
if (!FileSystems.Default.
FileExists
(redistFilePath))
ToolTask.cs (4)
518
if (string.IsNullOrWhiteSpace(pathToTool) || (ToolPath == null && !FileSystems.Default.
FileExists
(pathToTool)))
539
bool isExistingFile = FileSystems.Default.
FileExists
(pathToTool);
1334
.FirstOrDefault(fullPath => !string.IsNullOrEmpty(fullPath) && FileSystems.Default.
FileExists
(fullPath));
1616
if (_temporaryBatchFile != null && FileSystems.Default.
FileExists
(_temporaryBatchFile))
TrackedDependencies\FileTracker.cs (3)
434
if (FileSystems.Default.
FileExists
(trackerPath))
534
if (!FileSystems.Default.
FileExists
(trackerPath))
581
if (FileSystems.Default.
FileExists
(progfilesPath))
Microsoft.Build.Utilities.UnitTests (1)
TestAssemblyInfo.cs (1)
111
if (FileSystems.Default.
FileExists
(potentialVersionsPropsPath))