3 implementations of FileExists
Microsoft.Build.Utilities.Core (3)
CachingFileSystemWrapper.cs (1)
44
public bool
FileExists
(string path)
ManagedFileSystem.cs (1)
142
public virtual bool
FileExists
(string path)
MSBuildOnWindowsFileSystem.cs (1)
76
public bool
FileExists
(string path)
26 references to FileExists
Microsoft.Build.Utilities.Core (25)
BuildEnvironmentHelper.cs (3)
214
if (FileSystems.Default.
FileExists
(msBuildExe))
218
else if (FileSystems.Default.
FileExists
(msBuildDll))
342
if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.Default.
FileExists
(msBuildExePath))
CachingFileSystemWrapper.cs (1)
46
return CachedExistenceCheck(path, p => _fileSystem.
FileExists
(p));
FileUtilities.cs (3)
1025
? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.
FileExists
(fullPath))
1026
: fileSystem.
FileExists
(fullPath);
1453
if (fileSystem.
FileExists
(possibleFileDirectory))
FrameworkLocationHelper.cs (2)
1395
(!FileSystems.Default.
FileExists
(Path.Combine(generatedPathToDotNetFramework, NativeMethodsShared.IsWindows ? "MSBuild.exe" : "mcs.exe")) &&
1396
!FileSystems.Default.
FileExists
(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll"))))
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 (7)
1498
if (!FileSystems.Default.
FileExists
(fullPath))
1761
if (FileSystems.Default.
FileExists
(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll")))
1835
if (legacyMsCorlib20Path != null && FileSystems.Default.
FileExists
(Path.Combine(legacyMsCorlib20Path, "mscorlib.dll")))
1852
if (FileSystems.Default.
FileExists
(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll")))
2626
bool platformSDKManifestExists = FileSystems.Default.
FileExists
(platformSDKManifest);
3113
if (!FileSystems.Default.
FileExists
(redistFilePath))
3587
if (!FileSystems.Default.
FileExists
(toolPath))
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))
Microsoft.Build.Utilities.UnitTests (1)
TestAssemblyInfo.cs (1)
111
if (FileSystems.Default.
FileExists
(potentialVersionsPropsPath))