3 implementations of FileExists
MSBuild (3)
CachingFileSystemWrapper.cs (1)
44public bool FileExists(string path)
ManagedFileSystem.cs (1)
144public virtual bool FileExists(string path)
MSBuildOnWindowsFileSystem.cs (1)
76public bool FileExists(string path)
27 references to FileExists
Microsoft.Build.CommandLine.UnitTests (1)
TestAssemblyInfo.cs (1)
122if (FileSystems.Default.FileExists(potentialVersionsPropsPath))
MSBuild (26)
BuildEnvironmentHelper.cs (4)
213if (FileSystems.Default.FileExists(msBuildExe)) 217else if (FileSystems.Default.FileExists(msBuildDll)) 341if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.Default.FileExists(msBuildExePath)) 611var existsCheck = mode == BuildEnvironmentMode.VisualStudio ? new Func<string, bool>(_ => true) : FileSystems.Default.FileExists;
CachingFileSystemWrapper.cs (1)
46return CachedExistenceCheck(path, p => _fileSystem.FileExists(p));
DebugUtils.cs (1)
116while (FileSystems.Default.FileExists(fullPath))
FileUtilities.cs (4)
81return !FileSystems.Default.FileExists(lowerCased); 1087? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.FileExists(fullPath)) 1088: fileSystem.FileExists(fullPath); 1515if (fileSystem.FileExists(possibleFileDirectory))
Modifiers.cs (2)
329if (FileSystems.Default.FileExists(unescapedItemSpec)) 345if (FileSystems.Default.FileExists(unescapedItemSpec))
ProjectSchemaValidationHandler.cs (1)
49if (FileSystems.Default.FileExists(schemaFile))
TaskEngineAssemblyResolver.cs (1)
106if (FileSystems.Default.FileExists(_taskAssemblyFile))
TaskFactoryUtilities.cs (4)
156if (!string.IsNullOrEmpty(assemblyPath) && FileSystems.Default.FileExists(assemblyPath)) 206if (!FileSystems.Default.FileExists(manifestPath)) 273if (FileSystems.Default.FileExists(path)) 281if (FileSystems.Default.FileExists(path))
TempFileUtilities.cs (1)
188ErrorUtilities.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique");
XMake.cs (7)
381if (!FileSystems.Default.FileExists(path)) 2240else if (!FileSystems.Default.FileExists(responseFile)) 2473if (FileSystems.Default.FileExists(autoResponseFile)) 3110InitializationException.VerifyThrow(FileSystems.Default.FileExists(projectFile), "ProjectNotFoundError", projectFile); 3616InitializationException.VerifyThrow(FileSystems.Default.FileExists(projectFile), "ProjectNotFoundError", projectFile); 4472if (FileSystems.Default.FileExists(testFile)) 4630InitializationException.VerifyThrow(FileSystems.Default.FileExists(fileName), "SchemaNotFoundError", fileName);