3 implementations of FileExists
Microsoft.Build.Tasks.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)
96 references to FileExists
Microsoft.Build.Tasks.Core (95)
Al.cs (1)
313
if (String.IsNullOrEmpty(pathToTool) || !FileSystems.Default.
FileExists
(pathToTool))
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
130
ErrorUtilities.VerifyThrow(FileSystems.Default.
FileExists
(_assemblyFolderConfigFile),
AssemblyDependency\AssemblyInformation.cs (2)
101
if (FileSystems.Default.
FileExists
(newLocation))
972
if (!FileSystems.Default.
FileExists
(path))
AssemblyDependency\GenerateBindingRedirects.cs (1)
108
var outputExists = FileSystems.Default.
FileExists
(OutputAppConfigFile.ItemSpec);
AxTlbBaseReference.cs (2)
131
if (!FileSystems.Default.
FileExists
(wrapperPath))
153
if (!FileSystems.Default.
FileExists
(wrapperInfo.path))
AxTlbBaseTask.cs (1)
182
if (FileSystems.Default.
FileExists
(KeyFile))
BootstrapperUtil\BootstrapperBuilder.cs (10)
363
if (!FileSystems.Default.
FileExists
(setupSourceFile))
537
if (FileSystems.Default.
FileExists
(resourceFilePath))
810
bool fileExists = FileSystems.Default.
FileExists
(filePath);
811
bool schemaExists = FileSystems.Default.
FileExists
(schemaPath);
938
if (FileSystems.Default.
FileExists
(strLangManifestFilename))
1453
if (!FileSystems.Default.
FileExists
(packageFileSource.Value))
1471
if (!FileSystems.Default.
FileExists
(packageFileSource.Value))
1524
if (FileSystems.Default.
FileExists
(eulaAttribute.Value))
2093
if (FileSystems.Default.
FileExists
(fileSource))
2162
if (FileSystems.Default.
FileExists
(fileSource))
BuildEnvironmentHelper.cs (3)
213
if (FileSystems.Default.
FileExists
(msBuildExe))
217
else if (FileSystems.Default.
FileExists
(msBuildDll))
341
if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.Default.
FileExists
(msBuildExePath))
CachingFileSystemWrapper.cs (1)
46
return CachedExistenceCheck(path, p => _fileSystem.
FileExists
(p));
CodeTaskFactory.cs (1)
616
if (!FileSystems.Default.
FileExists
(referenceAssembly))
Copy.cs (1)
1009
if (DestinationFolder != null && FileSystems.Default.
FileExists
(DestinationFolder.ItemSpec))
Delete.cs (1)
122
if (FileSystems.Default.
FileExists
(file.ItemSpec))
DependencyFile.cs (1)
66
if (FileSystems.Default.
FileExists
(FileName))
FileIO\GetFileHash.cs (1)
88
if (!FileSystems.Default.
FileExists
(file.ItemSpec))
FileIO\ReadLinesFromFile.cs (1)
41
if (FileSystems.Default.
FileExists
(File.ItemSpec))
FileIO\VerifyFileHash.cs (1)
42
if (!FileSystems.Default.
FileExists
(File))
FileUtilities.cs (3)
1058
? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.
FileExists
(fullPath))
1059
: fileSystem.
FileExists
(fullPath);
1486
if (fileSystem.
FileExists
(possibleFileDirectory))
GenerateResource.cs (6)
1170
if (!FileSystems.Default.
FileExists
(outputFile.ItemSpec))
1208
if (!FileSystems.Default.
FileExists
(outputFile.ItemSpec))
2526
if (assemblyFile.ItemSpec != null && FileSystems.Default.
FileExists
(assemblyFile.ItemSpec))
2741
if (FileSystems.Default.
FileExists
(outFileOrDir)
2763
if (FileSystems.Default.
FileExists
(currentOutputFile))
3077
if (!FileSystems.Default.
FileExists
(name))
GenerateTrustInfo.cs (1)
53
if (BaseManifest != null && FileSystems.Default.
FileExists
(BaseManifest.ItemSpec))
GetSDKReferenceFiles.cs (1)
1100
if (FileSystems.Default.
FileExists
(referencesCacheFile) && currentCodeLastWriteTime < referencesCacheFileLastWriteTimeUtc)
ManifestUtil\AssemblyIdentity.cs (6)
199
if (!FileSystems.Default.
FileExists
(path))
273
if (!FileSystems.Default.
FileExists
(path))
307
if (!FileSystems.Default.
FileExists
(path))
333
if (!FileSystems.Default.
FileExists
(path))
535
if (FileSystems.Default.
FileExists
(path) && IsEqual(this, FromFile(path), specificVersion))
542
if (FileSystems.Default.
FileExists
(path) && IsEqual(this, FromManifest(path), specificVersion))
ManifestUtil\DeployManifest.cs (2)
150
if (FileSystems.Default.
FileExists
(redistListFilePath))
583
if (FileSystems.Default.
FileExists
(manifestPath))
ManifestUtil\LauncherBuilder.cs (1)
83
if (!FileSystems.Default.
FileExists
(LauncherPath))
ManifestUtil\Manifest.cs (2)
314
if (FileSystems.Default.
FileExists
(path))
331
if (FileSystems.Default.
FileExists
(resolvedPath))
ManifestUtil\SecurityUtil.cs (6)
661
if (!FileSystems.Default.
FileExists
(path))
856
if (toolPath == null || !FileSystems.Default.
FileExists
(toolPath))
861
if (toolPath == null || !FileSystems.Default.
FileExists
(toolPath))
869
if (NativeMethodsShared.IsWindows && (toolPath == null || !FileSystems.Default.
FileExists
(toolPath)))
873
if (toolPath == null || !FileSystems.Default.
FileExists
(toolPath))
877
if (!FileSystems.Default.
FileExists
(toolPath))
ManifestUtil\TrustInfo.cs (1)
653
if (FileSystems.Default.
FileExists
(path))
Modifiers.cs (2)
528
if (FileSystems.Default.
FileExists
(unescapedItemSpec))
544
if (FileSystems.Default.
FileExists
(unescapedItemSpec))
Move.cs (3)
222
if (!FileSystems.Default.
FileExists
(sourceFile))
229
if (OverwriteReadOnlyFiles && FileSystems.Default.
FileExists
(destinationFile))
271
if (FileSystems.Default.
FileExists
(destinationFile))
MSBuild.cs (1)
305
if (FileSystems.Default.
FileExists
(projectPath) || (skipNonExistProjects == SkipNonExistentProjectsBehavior.Build))
NativeMethods.cs (3)
845
if (!FileSystems.Default.
FileExists
(existingFileName))
850
var targetExists = FileSystems.Default.
FileExists
(newFileName);
1479
if (FileSystems.Default.
FileExists
(path))
RedistList.cs (1)
1051
if (FileSystems.Default.
FileExists
(subsetFilePath))
RegisterAssembly.cs (2)
215
if (!FileSystems.Default.
FileExists
(assemblyPath))
243
if ((!FileSystems.Default.
FileExists
(typeLibPath)) ||
ResGen.cs (3)
260
if (FileSystems.Default.
FileExists
(outputFiles[i].ItemSpec))
277
if (!FileSystems.Default.
FileExists
(outputFile.ItemSpec))
510
if (!FileSystems.Default.
FileExists
(pathToTool))
ResGenDependencies.cs (1)
232
if (FileSystems.Default.
FileExists
(FileName))
ResolveCodeAnalysisRuleSet.cs (4)
87
if (FileSystems.Default.
FileExists
(fullName))
99
if (FileSystems.Default.
FileExists
(fullName))
112
if (FileSystems.Default.
FileExists
(fullName))
118
else if (FileSystems.Default.
FileExists
(CodeAnalysisRuleSet))
ResolveKeySource.cs (1)
208
if (!FileSystems.Default.
FileExists
(CertificateFile))
ResolveNativeReference.cs (1)
124
if (String.IsNullOrEmpty(path) || !FileSystems.Default.
FileExists
(path))
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (3)
551
if (FileSystems.Default.
FileExists
(reference))
777
if (FileSystems.Default.
FileExists
(assemblyPath))
782
if (deleteSourceCodeFile && FileSystems.Default.
FileExists
(sourceCodePath))
SGen.cs (3)
315
if (String.IsNullOrEmpty(pathToTool) || !FileSystems.Default.
FileExists
(pathToTool))
333
if (!FileSystems.Default.
FileExists
(reference))
422
serializationAssemblyPathExists = FileSystems.Default.
FileExists
(SerializationAssemblyPath);
StateFileBase.cs (3)
45
if (FileSystems.Default.
FileExists
(stateFile))
83
if (!string.IsNullOrEmpty(stateFile) && FileSystems.Default.
FileExists
(stateFile))
140
if (FileSystems.Default.
FileExists
(stateFile))
TempFileUtilities.cs (1)
188
ErrorUtilities.VerifyThrow(!FileSystems.Default.
FileExists
(file), "Guid should be unique");
UnregisterAssembly.cs (2)
157
if (FileSystems.Default.
FileExists
(assemblyPath))
231
if (FileSystems.Default.
FileExists
(typeLibPath))
Unzip.cs (1)
109
if (!FileSystems.Default.
FileExists
(sourceFile.ItemSpec))
XamlTaskFactory\TaskParser.cs (2)
142
if (!FileSystems.Default.
FileExists
(contentOrFile))
160
if (FileSystems.Default.
FileExists
(maybeFullPath))
Microsoft.Build.Tasks.UnitTests (1)
TestAssemblyInfo.cs (1)
111
if (FileSystems.Default.
FileExists
(potentialVersionsPropsPath))