3 implementations of FileExists
Microsoft.Build.Tasks.Core (3)
CachingFileSystemWrapper.cs (1)
44public bool FileExists(string path)
ManagedFileSystem.cs (1)
142public virtual bool FileExists(string path)
MSBuildOnWindowsFileSystem.cs (1)
76public bool FileExists(string path)
73 references to FileExists
Microsoft.Build.Tasks.Core (72)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
130ErrorUtilities.VerifyThrow(FileSystems.Default.FileExists(_assemblyFolderConfigFile),
AssemblyDependency\AssemblyInformation.cs (1)
975if (!FileSystems.Default.FileExists(path))
AssemblyDependency\GenerateBindingRedirects.cs (1)
108var outputExists = FileSystems.Default.FileExists(OutputAppConfigFile.ItemSpec);
BootstrapperUtil\BootstrapperBuilder.cs (10)
363if (!FileSystems.Default.FileExists(setupSourceFile)) 537if (FileSystems.Default.FileExists(resourceFilePath)) 810bool fileExists = FileSystems.Default.FileExists(filePath); 811bool schemaExists = FileSystems.Default.FileExists(schemaPath); 938if (FileSystems.Default.FileExists(strLangManifestFilename)) 1453if (!FileSystems.Default.FileExists(packageFileSource.Value)) 1471if (!FileSystems.Default.FileExists(packageFileSource.Value)) 1524if (FileSystems.Default.FileExists(eulaAttribute.Value)) 2089if (FileSystems.Default.FileExists(fileSource)) 2158if (FileSystems.Default.FileExists(fileSource))
BuildEnvironmentHelper.cs (3)
214if (FileSystems.Default.FileExists(msBuildExe)) 218else if (FileSystems.Default.FileExists(msBuildDll)) 342if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.Default.FileExists(msBuildExePath))
CachingFileSystemWrapper.cs (1)
46return CachedExistenceCheck(path, p => _fileSystem.FileExists(p));
Copy.cs (1)
957if (DestinationFolder != null && FileSystems.Default.FileExists(DestinationFolder.ItemSpec))
Delete.cs (1)
122if (FileSystems.Default.FileExists(file.ItemSpec))
DependencyFile.cs (1)
66if (FileSystems.Default.FileExists(FileName))
Exec.cs (1)
501if (!FileSystems.Default.FileExists(systemCmd))
FileIO\GetFileHash.cs (1)
88if (!FileSystems.Default.FileExists(file.ItemSpec))
FileIO\ReadLinesFromFile.cs (1)
41if (FileSystems.Default.FileExists(File.ItemSpec))
FileIO\VerifyFileHash.cs (1)
42if (!FileSystems.Default.FileExists(File))
FileUtilities.cs (3)
1025? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.FileExists(fullPath)) 1026: fileSystem.FileExists(fullPath); 1453if (fileSystem.FileExists(possibleFileDirectory))
GenerateResource.cs (3)
2531if (assemblyFile.ItemSpec != null && FileSystems.Default.FileExists(assemblyFile.ItemSpec)) 2746if (FileSystems.Default.FileExists(outFileOrDir) 2768if (FileSystems.Default.FileExists(currentOutputFile))
GetSDKReferenceFiles.cs (1)
1100if (FileSystems.Default.FileExists(referencesCacheFile) && currentCodeLastWriteTime < referencesCacheFileLastWriteTimeUtc)
ManifestUtil\AssemblyIdentity.cs (6)
188if (!FileSystems.Default.FileExists(path)) 262if (!FileSystems.Default.FileExists(path)) 296if (!FileSystems.Default.FileExists(path)) 322if (!FileSystems.Default.FileExists(path)) 519if (FileSystems.Default.FileExists(path) && IsEqual(this, FromFile(path), specificVersion)) 526if (FileSystems.Default.FileExists(path) && IsEqual(this, FromManifest(path), specificVersion))
ManifestUtil\DeployManifest.cs (2)
150if (FileSystems.Default.FileExists(redistListFilePath)) 583if (FileSystems.Default.FileExists(manifestPath))
ManifestUtil\LauncherBuilder.cs (1)
83if (!FileSystems.Default.FileExists(LauncherPath))
ManifestUtil\Manifest.cs (2)
315if (FileSystems.Default.FileExists(path)) 332if (FileSystems.Default.FileExists(resolvedPath))
ManifestUtil\SecurityUtil.cs (6)
661if (!FileSystems.Default.FileExists(path)) 855if (toolPath == null || !FileSystems.Default.FileExists(toolPath)) 860if (toolPath == null || !FileSystems.Default.FileExists(toolPath)) 868if (NativeMethodsShared.IsWindows && (toolPath == null || !FileSystems.Default.FileExists(toolPath))) 872if (toolPath == null || !FileSystems.Default.FileExists(toolPath)) 876if (!FileSystems.Default.FileExists(toolPath))
ManifestUtil\TrustInfo.cs (1)
654if (FileSystems.Default.FileExists(path))
Modifiers.cs (2)
528if (FileSystems.Default.FileExists(unescapedItemSpec)) 544if (FileSystems.Default.FileExists(unescapedItemSpec))
Move.cs (3)
222if (!FileSystems.Default.FileExists(sourceFile)) 229if (OverwriteReadOnlyFiles && FileSystems.Default.FileExists(destinationFile)) 271if (FileSystems.Default.FileExists(destinationFile))
MSBuild.cs (1)
308if (FileSystems.Default.FileExists(projectPath) || (skipNonExistProjects == SkipNonExistentProjectsBehavior.Build))
NativeMethods.cs (3)
843if (!FileSystems.Default.FileExists(existingFileName)) 848var targetExists = FileSystems.Default.FileExists(newFileName); 1462if (FileSystems.Default.FileExists(path))
RedistList.cs (1)
1051if (FileSystems.Default.FileExists(subsetFilePath))
ResGenDependencies.cs (1)
232if (FileSystems.Default.FileExists(FileName))
ResolveCodeAnalysisRuleSet.cs (4)
87if (FileSystems.Default.FileExists(fullName)) 99if (FileSystems.Default.FileExists(fullName)) 112if (FileSystems.Default.FileExists(fullName)) 118else if (FileSystems.Default.FileExists(CodeAnalysisRuleSet))
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (3)
551if (FileSystems.Default.FileExists(reference)) 777if (FileSystems.Default.FileExists(assemblyPath)) 782if (deleteSourceCodeFile && FileSystems.Default.FileExists(sourceCodePath))
StateFileBase.cs (3)
45if (FileSystems.Default.FileExists(stateFile)) 83if (!string.IsNullOrEmpty(stateFile) && FileSystems.Default.FileExists(stateFile)) 140if (FileSystems.Default.FileExists(stateFile))
TempFileUtilities.cs (1)
188ErrorUtilities.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique");
Unzip.cs (1)
109if (!FileSystems.Default.FileExists(sourceFile.ItemSpec))
Microsoft.Build.Tasks.UnitTests (1)
TestAssemblyInfo.cs (1)
111if (FileSystems.Default.FileExists(potentialVersionsPropsPath))