23 references to FileExistsNoThrow
Microsoft.Build (12)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
615
if (FileUtilities.
FileExistsNoThrow
(fullPath))
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (3)
177
if (!string.IsNullOrEmpty(pathToManifest) && !FileUtilities.
FileExistsNoThrow
(pathToManifest))
202
if (string.IsNullOrEmpty(manifest.Path) || !FileUtilities.
FileExistsNoThrow
(manifest.Path))
214
if (string.IsNullOrEmpty(assemblyPath) || !FileUtilities.
FileExistsNoThrow
(assemblyPath))
Evaluation\IntrinsicFunctions.cs (2)
517
return taskHostLocation != null && FileUtilities.
FileExistsNoThrow
(taskHostLocation);
549
return FileUtilities.
FileExistsNoThrow
(path);
Instance\TaskRegistry.cs (6)
373
!FileUtilities.
FileExistsNoThrow
(assemblyFile, fileSystem))
377
if (FileUtilities.
FileExistsNoThrow
(replacedAssemblyFile, fileSystem))
391
!FileUtilities.
FileExistsNoThrow
(s_potentialTasksV4Location, fileSystem) &&
392
FileUtilities.
FileExistsNoThrow
(s_potentialTasksCoreLocation, fileSystem))
399
!FileUtilities.
FileExistsNoThrow
(s_potentialTasksV12Location, fileSystem) &&
400
FileUtilities.
FileExistsNoThrow
(s_potentialTasksCoreLocation, fileSystem))
Microsoft.Build.Framework (1)
Utilities\TaskFactoryUtilities.cs (1)
57
public bool IsValid => string.IsNullOrEmpty(AssemblyPath) || FileUtilities.
FileExistsNoThrow
(AssemblyPath);
Microsoft.Build.Tasks.Core (7)
AssemblyDependency\ResolveAssemblyReference.cs (2)
3434
if (_stateFile.Value is not null && FileUtilities.
FileExistsNoThrow
(_stateFile.Value))
3451
p => FileUtilities.
FileExistsNoThrow
(p),
FileIO\WriteLinesToFile.cs (1)
313
if (FileUtilities.
FileExistsNoThrow
(filePath))
GetSDKReferenceFiles.cs (2)
235
return Execute(AssemblyNameExtension.GetAssemblyNameEx, AssemblyInformation.GetRuntimeVersion, p => FileUtilities.
FileExistsNoThrow
(p), synchronous: false);
516
if (FileUtilities.
FileExistsNoThrow
(xmlFile))
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
698
if (!string.IsNullOrEmpty(cachedEntry.AssemblyPath) && !FileUtilities.
FileExistsNoThrow
(cachedEntry.AssemblyPath))
SystemState.cs (1)
651
if (FileUtilities.
FileExistsNoThrow
(stateFile))
Microsoft.Build.Utilities.Core (3)
ToolLocationHelper.cs (2)
2554
if (FileUtilities.
FileExistsNoThrow
(pathToSDKManifest))
3057
if (FileUtilities.
FileExistsNoThrow
(pathToPlatformManifest))
TrackedDependencies\TrackedDependencies.cs (1)
84
if (!FileUtilities.
FileExistsNoThrow
(item.ItemSpec))