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