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)
32 references to FileExists
Microsoft.Build.Utilities.Core (31)
BuildEnvironmentHelper.cs (4)
213
if (FileSystems.Default.
FileExists
(msBuildExe))
217
else if (FileSystems.Default.
FileExists
(msBuildDll))
341
if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.Default.
FileExists
(msBuildExePath))
611
var existsCheck = mode == BuildEnvironmentMode.VisualStudio ? new Func<string, bool>(_ => true) : FileSystems.Default.
FileExists
;
CachingFileSystemWrapper.cs (1)
46
return CachedExistenceCheck(path, p => _fileSystem.
FileExists
(p));
DebugUtils.cs (1)
116
while (FileSystems.Default.
FileExists
(fullPath))
FileUtilities.cs (4)
81
return !FileSystems.Default.
FileExists
(lowerCased);
1087
? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.
FileExists
(fullPath))
1088
: fileSystem.
FileExists
(fullPath);
1515
if (fileSystem.
FileExists
(possibleFileDirectory))
FrameworkLocationHelper.cs (2)
1435
(!FileSystems.Default.
FileExists
(Path.Combine(generatedPathToDotNetFramework, NativeMethodsShared.IsWindows ? "MSBuild.exe" : "mcs.exe")) &&
1436
!FileSystems.Default.
FileExists
(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll"))))
InprocTrackingNativeMethods.cs (1)
210
if (!FileSystems.Default.
FileExists
(fileTrackerPath))
Modifiers.cs (2)
329
if (FileSystems.Default.
FileExists
(unescapedItemSpec))
345
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)
122
if (FileSystems.Default.
FileExists
(potentialVersionsPropsPath))