3 implementations of FileExists
MSBuild (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.CommandLine.UnitTests (1)
TestAssemblyInfo.cs (1)
122
if (FileSystems.Default.
FileExists
(potentialVersionsPropsPath))
MSBuild (26)
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))
Modifiers.cs (2)
329
if (FileSystems.Default.
FileExists
(unescapedItemSpec))
345
if (FileSystems.Default.
FileExists
(unescapedItemSpec))
ProjectSchemaValidationHandler.cs (1)
49
if (FileSystems.Default.
FileExists
(schemaFile))
TaskEngineAssemblyResolver.cs (1)
106
if (FileSystems.Default.
FileExists
(_taskAssemblyFile))
TaskFactoryUtilities.cs (4)
156
if (!string.IsNullOrEmpty(assemblyPath) && FileSystems.Default.
FileExists
(assemblyPath))
206
if (!FileSystems.Default.
FileExists
(manifestPath))
273
if (FileSystems.Default.
FileExists
(path))
281
if (FileSystems.Default.
FileExists
(path))
TempFileUtilities.cs (1)
188
ErrorUtilities.VerifyThrow(!FileSystems.Default.
FileExists
(file), "Guid should be unique");
XMake.cs (7)
381
if (!FileSystems.Default.
FileExists
(path))
2240
else if (!FileSystems.Default.
FileExists
(responseFile))
2473
if (FileSystems.Default.
FileExists
(autoResponseFile))
3110
InitializationException.VerifyThrow(FileSystems.Default.
FileExists
(projectFile), "ProjectNotFoundError", projectFile);
3616
InitializationException.VerifyThrow(FileSystems.Default.
FileExists
(projectFile), "ProjectNotFoundError", projectFile);
4472
if (FileSystems.Default.
FileExists
(testFile))
4630
InitializationException.VerifyThrow(FileSystems.Default.
FileExists
(fileName), "SchemaNotFoundError", fileName);