4 implementations of FileExists
Microsoft.Build (2)
FileSystem\DirectoryCacheFileSystemWrapper.cs (1)
47
public bool
FileExists
(string path)
FileSystem\MSBuildFileSystemBase.cs (1)
78
public virtual bool
FileExists
(string path) => FileSystems.Default.FileExists(path);
Microsoft.Build.Framework (2)
FileSystem\CachingFileSystemWrapper.cs (1)
55
public bool
FileExists
(string path)
FileSystem\ManagedFileSystem.cs (1)
143
public virtual bool
FileExists
(string path)
137 references to FileExists
Microsoft.Build (26)
BackEnd\BuildManager\BuildManager.cs (2)
3811
if (inputCacheFiles.Any(f => !FileSystems.Default.
FileExists
(f)))
3813
LogErrorAndShutdown(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("InputCacheFilesDoNotExist", string.Join(";", inputCacheFiles.Where(f => !FileSystems.Default.
FileExists
(f)))));
BackEnd\BuildManager\BuildParameters.cs (1)
1111
if (FileSystems.Default.
FileExists
(path))
BackEnd\Components\Communications\CurrentHost.cs (2)
34
if (FileSystems.Default.
FileExists
(dotnetExe))
54
host = FileSystems.Default.
FileExists
(dotnetExe)
BackEnd\Components\Communications\NodeLauncher.cs (1)
86
if (!FileSystems.Default.
FileExists
(msbuildLocation))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
1277
return FileSystems.Default.
FileExists
(appHostPath)
BackEnd\Components\Communications\RarNodeLauncher.cs (1)
69
return FileSystems.Default.
FileExists
(_pipeName);
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
336
if (FileSystems.Default.
FileExists
(projectPath) || (skipNonExistProjects == SkipNonExistentProjectsBehavior.Build))
BackEnd\Components\Scheduler\Scheduler.cs (1)
2780
shouldWriteHeader = !FileSystems.Default.
FileExists
(_debugDumpStateFilePath);
BackEnd\Components\Scheduler\SchedulingPlan.cs (1)
154
if (!FileSystems.Default.
FileExists
(planName))
BackEnd\Shared\BuildRequestConfiguration.cs (1)
1137
if (FileSystems.Default.
FileExists
(cacheFile))
BackEnd\Shared\TargetResult.cs (1)
319
if (!FileSystems.Default.
FileExists
(cacheFile))
Construction\ProjectRootElement.cs (2)
1663
ErrorUtilities.VerifyThrowInvalidOperation(FileSystems.Default.
FileExists
(path), "FileToReloadFromDoesNotExist", path);
1968
if (!FileSystems.Default.
FileExists
(path))
Construction\Solution\SolutionFile.cs (1)
634
if (!FileSystems.Default.
FileExists
(_solutionFile))
Definition\ToolsetConfigurationReader.cs (1)
274
FileSystems.Default.
FileExists
(BuildEnvironmentHelper.Instance.CurrentMSBuildConfigurationFile))
Evaluation\Evaluator.cs (2)
2054
if (FileSystems.Default.
FileExists
(dotnetExe))
2409
if (!FileSystems.Default.
FileExists
(importFileUnescaped))
Evaluation\IntrinsicFunctions.cs (1)
763
if (FileSystems.Default.
FileExists
(pathToAssembly))
Evaluation\ParserIgnoreConfiguration.cs (1)
286
if (!FileSystems.Default.
FileExists
(fullPath) || !_loadedConfigFiles.Add(fullPath))
FileSystem\MSBuildFileSystemBase.cs (1)
78
public virtual bool FileExists(string path) => FileSystems.Default.
FileExists
(path);
Logging\BinaryLogger\ProjectImportsCollector.cs (2)
222
if (checkFileExistence && !FileSystems.Default.
FileExists
(filePath))
268
if (FileSystems.Default.
FileExists
(_archiveFilePath))
parent\Shared\TaskEngineAssemblyResolver.cs (1)
112
if (FileSystems.Default.
FileExists
(_taskAssemblyFile))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
80
while (FileSystems.Default.
FileExists
(fullPath))
Microsoft.Build.Framework (28)
BuildEnvironmentHelper.cs (3)
251
if (FileSystems.Default.
FileExists
(msBuildExecutableCandidate))
375
if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.Default.
FileExists
(msBuildExePath))
653
var existsCheck = mode == BuildEnvironmentMode.VisualStudio ? new Func<string, bool>(_ => true) : FileSystems.Default.
FileExists
;
FileSystem\CachingFileSystemWrapper.cs (1)
57
return _fileExistenceCache.GetOrAdd(path, p => _fileSystem.
FileExists
(p));
FileUtilities_TempFiles.cs (1)
195
Assumed.False(FileSystems.Default.
FileExists
(file), "Guid should be unique");
FileUtilities.cs (4)
91
return !FileSystems.Default.
FileExists
(lowerCased);
1269
? FileExistenceCache.GetOrAdd(fullPath, fullPath => fileSystem.
FileExists
(fullPath))
1270
: fileSystem.
FileExists
(fullPath);
1691
if (fileSystem.
FileExists
(possibleFileDirectory))
Loader\CoreCLRAssemblyLoader.cs (1)
191
!FileSystems.Default.
FileExists
(candidatePath))
Loader\MSBuildLoadContext.cs (4)
45
_resolver = FileSystems.Default.
FileExists
(assemblyPath) && FileSystems.Default.
FileExists
(Path.ChangeExtension(assemblyPath, ".deps.json"))
89
if (!FileSystems.Default.
FileExists
(candidatePath))
111
if (FileSystems.Default.
FileExists
(assemblyNameInExecutableDirectory))
Utilities\FrameworkLocationHelper.cs (2)
1448
(!FileSystems.Default.
FileExists
(Path.Combine(generatedPathToDotNetFramework, Constants.MSBuildExecutableName)) &&
1449
!FileSystems.Default.
FileExists
(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll"))))
Utilities\PlatformManifest.cs (1)
97
if (FileSystems.Default.
FileExists
(platformManifestPath))
Utilities\SDKManifest.cs (1)
294
if (FileSystems.Default.
FileExists
(sdkManifestPath))
Utilities\TaskFactoryUtilities.cs (4)
141
if (!string.IsNullOrEmpty(assemblyPath) && FileSystems.Default.
FileExists
(assemblyPath))
193
if (!FileSystems.Default.
FileExists
(manifestPath))
263
if (FileSystems.Default.
FileExists
(path))
271
if (FileSystems.Default.
FileExists
(path))
Utilities\ToolLocationHelper_ReferenceAssemblies.cs (4)
68
if (FileSystems.Default.
FileExists
(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll")))
142
if (legacyMsCorlib20Path != null && FileSystems.Default.
FileExists
(Path.Combine(legacyMsCorlib20Path, "mscorlib.dll")))
159
if (FileSystems.Default.
FileExists
(Path.Combine(referenceAssemblyDirectory, "mscorlib.dll")))
612
if (!FileSystems.Default.
FileExists
(redistFilePath))
Utilities\ToolLocationHelper_SDKDiscovery.cs (1)
245
bool platformSDKManifestExists = FileSystems.Default.
FileExists
(platformSDKManifest);
Utilities\ToolLocationHelper_VisualStudio.cs (1)
120
if (!FileSystems.Default.
FileExists
(fullPath))
Microsoft.Build.Tasks.Core (70)
AddToWin32Manifest.cs (1)
104
if (!FileSystems.Default.
FileExists
(absolutePath))
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
130
Assumed.True(FileSystems.Default.
FileExists
(_assemblyFolderConfigFile), $"The AssemblyFolders config file specified does not exist: {_assemblyFolderConfigFile}");
AssemblyDependency\AssemblyInformation.cs (1)
997
if (!FileSystems.Default.
FileExists
(path))
AssemblyDependency\GenerateBindingRedirects.cs (1)
113
var outputExists = FileSystems.Default.
FileExists
(outputAppConfigFile);
BootstrapperUtil\BootstrapperBuilder.cs (10)
365
if (!FileSystems.Default.
FileExists
(setupSourceFile))
539
if (FileSystems.Default.
FileExists
(resourceFilePath))
812
bool fileExists = FileSystems.Default.
FileExists
(filePath);
813
bool schemaExists = FileSystems.Default.
FileExists
(schemaPath);
940
if (FileSystems.Default.
FileExists
(strLangManifestFilename))
1455
if (!FileSystems.Default.
FileExists
(packageFileSource.Value))
1473
if (!FileSystems.Default.
FileExists
(packageFileSource.Value))
1526
if (FileSystems.Default.
FileExists
(eulaAttribute.Value))
2098
if (FileSystems.Default.
FileExists
(fileSource))
2167
if (FileSystems.Default.
FileExists
(fileSource))
Copy.cs (1)
1070
if (DestinationFolder != null && FileSystems.Default.
FileExists
(TaskEnvironment.GetAbsolutePath(DestinationFolder.ItemSpec)))
CreateManifestResourceName.cs (1)
197
if (FileSystems.Default.
FileExists
(dependentPath))
Delete.cs (1)
128
if (FileSystems.Default.
FileExists
(filePath))
DependencyFile.cs (1)
65
if (FileSystems.Default.
FileExists
(FileName))
Exec.cs (1)
531
if (!FileSystems.Default.
FileExists
(systemCmd))
FileIO\GetFileHash.cs (1)
93
if (!FileSystems.Default.
FileExists
(filePath))
FileIO\ReadLinesFromFile.cs (1)
46
if (FileSystems.Default.
FileExists
(filePath))
FileIO\VerifyFileHash.cs (1)
48
if (!FileSystems.Default.
FileExists
(filePath))
GenerateResource.cs (5)
1484
if (!FileSystems.Default.
FileExists
(Sources[i].ItemSpec))
1510
if (nothingOutOfDate && FileSystems.Default.
FileExists
(Sources[0].ItemSpec))
2604
if (assemblyFile.ItemSpec != null && FileSystems.Default.
FileExists
(assemblyFile.ItemSpec))
2816
if (FileSystems.Default.
FileExists
(outFileOrDir)
2838
if (FileSystems.Default.
FileExists
(currentOutputFile))
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)
151
if (FileSystems.Default.
FileExists
(redistListFilePath))
590
if (FileSystems.Default.
FileExists
(manifestPath))
ManifestUtil\LauncherBuilder.cs (1)
100
if (!FileSystems.Default.
FileExists
(launcher))
ManifestUtil\Manifest.cs (2)
319
if (FileSystems.Default.
FileExists
(path))
336
if (FileSystems.Default.
FileExists
(resolvedPath))
ManifestUtil\SecurityUtil.cs (6)
676
if (!FileSystems.Default.
FileExists
(path))
878
if (toolPath == null || !FileSystems.Default.
FileExists
(toolPath))
883
if (toolPath == null || !FileSystems.Default.
FileExists
(toolPath))
891
if (NativeMethodsShared.IsWindows && (toolPath == null || !FileSystems.Default.
FileExists
(toolPath)))
895
if (toolPath == null || !FileSystems.Default.
FileExists
(toolPath))
899
if (!FileSystems.Default.
FileExists
(toolPath))
ManifestUtil\TrustInfo.cs (1)
659
if (FileSystems.Default.
FileExists
(path))
Move.cs (5)
226
if (!FileSystems.Default.
FileExists
(sourceFile))
233
if (OverwriteReadOnlyFiles && FileSystems.Default.
FileExists
(destinationFile))
275
if (FileSystems.Default.
FileExists
(destinationFile))
307
if (!FileSystems.Default.
FileExists
(existingFileName))
312
var targetExists = FileSystems.Default.
FileExists
(newFileName);
MSBuild.cs (1)
295
if (FileSystems.Default.
FileExists
(projectPath) || (skipNonExistProjects == SkipNonExistentProjectsBehavior.Build))
NativeMethods.cs (1)
509
if (FileSystems.Default.
FileExists
(path))
RedistList.cs (1)
1111
if (FileSystems.Default.
FileExists
(subsetFilePath))
ResGenDependencies.cs (1)
235
if (FileSystems.Default.
FileExists
(FileName))
ResolveCodeAnalysisRuleSet.cs (4)
92
if (FileSystems.Default.
FileExists
(absolute))
105
if (FileSystems.Default.
FileExists
(absolute))
119
if (FileSystems.Default.
FileExists
(absolute))
129
if (FileSystems.Default.
FileExists
(absolute))
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
640
if (FileSystems.Default.
FileExists
(reference))
658
.FirstOrDefault(p => FileSystems.Default.
FileExists
(Path.Combine(p, assemblyFileName)));
887
if (deleteSourceCodeFile && sourceCodePath is not null && FileSystems.Default.
FileExists
(sourceCodePath))
893
if (!_compileForOutOfProcess && !string.IsNullOrEmpty(_assemblyPath) && FileSystems.Default.
FileExists
(_assemblyPath))
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (1)
47
return possibleLocations.Select(possibleLocation => possibleLocation()).FirstOrDefault(FileSystems.Default.
FileExists
);
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
80
while (FileSystems.Default.
FileExists
(fullPath))
StateFileBase.cs (3)
63
if (FileSystems.Default.
FileExists
(stateFile))
118
if (!string.IsNullOrEmpty(stateFile) && FileSystems.Default.
FileExists
(stateFile))
176
if (FileSystems.Default.
FileExists
(stateFile))
Untar.cs (1)
147
if (!FileSystems.Default.
FileExists
(sourceFile.FullName))
Unzip.cs (1)
125
if (!FileSystems.Default.
FileExists
(sourceFilePath))
Microsoft.Build.Utilities.Core (5)
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
80
while (FileSystems.Default.
FileExists
(fullPath))
ToolTask.cs (4)
530
if (string.IsNullOrWhiteSpace(pathToTool) || (ToolPath == null && !FileSystems.Default.
FileExists
(TaskEnvironment.GetAbsolutePath(pathToTool))))
551
bool isExistingFile = FileSystems.Default.
FileExists
(TaskEnvironment.GetAbsolutePath(pathToTool));
1436
.FirstOrDefault(fullPath => !string.IsNullOrEmpty(fullPath) && FileSystems.Default.
FileExists
(TaskEnvironment.GetAbsolutePath(fullPath)));
1715
if (_temporaryBatchFile != null && FileSystems.Default.
FileExists
(_temporaryBatchFile))
MSBuild (8)
CommandLine\CommandLineParser.cs (3)
342
else if (!FileSystems.Default.
FileExists
(responseFile))
570
InitializationException.VerifyThrow(FileSystems.Default.
FileExists
(projectFile), "ProjectNotFoundError", projectFile);
671
if (FileSystems.Default.
FileExists
(autoResponseFile))
parent\Shared\TaskEngineAssemblyResolver.cs (1)
112
if (FileSystems.Default.
FileExists
(_taskAssemblyFile))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
80
while (FileSystems.Default.
FileExists
(fullPath))
XMake.cs (3)
624
if (!FileSystems.Default.
FileExists
(path))
3630
InitializationException.VerifyThrow(FileSystems.Default.
FileExists
(projectFile), "ProjectNotFoundError", projectFile);
4520
if (FileSystems.Default.
FileExists
(testFile))