25 references to FileExistsNoThrow
Microsoft.Build (14)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
889if (FileUtilities.FileExistsNoThrow(fullPath))
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (3)
192if (!string.IsNullOrEmpty(pathToManifest) && !FileUtilities.FileExistsNoThrow(pathToManifest)) 217if (string.IsNullOrEmpty(manifest.Path) || !FileUtilities.FileExistsNoThrow(manifest.Path)) 229if (string.IsNullOrEmpty(assemblyPath) || !FileUtilities.FileExistsNoThrow(assemblyPath))
Evaluation\IntrinsicFunctions.cs (2)
505return taskHostLocation != null && FileUtilities.FileExistsNoThrow(taskHostLocation); 537return FileUtilities.FileExistsNoThrow(FixSeparatorsAndResolveAgainstThreadWorkingDirectory(path));
Instance\TaskRegistry.UsingTaskInfo.cs (8)
508if (FileUtilities.FileExistsNoThrow(s_potentialTasksCoreLocation, fileSystem)) 518if (FileUtilities.FileExistsNoThrow(replacedAssemblyFile, fileSystem)) 541FileUtilities.FileExistsNoThrow(s_potentialTasksCoreLocation, fileSystem)) 566!FileUtilities.FileExistsNoThrow(assemblyFile, fileSystem)) 571if (FileUtilities.FileExistsNoThrow(replacedAssemblyFile, fileSystem)) 597FileUtilities.FileExistsNoThrow(s_potentialTasksCoreLocation, fileSystem)) 608=> (assemblyName.Equals(TasksV4SimpleName, StringComparison.OrdinalIgnoreCase) && !FileUtilities.FileExistsNoThrow(s_potentialTasksV4Location, fileSystem)) 609|| (assemblyName.Equals(TasksV12SimpleName, StringComparison.OrdinalIgnoreCase) && !FileUtilities.FileExistsNoThrow(s_potentialTasksV12Location, fileSystem));
Microsoft.Build.Framework (3)
Utilities\TaskFactoryUtilities.cs (1)
58public bool IsValid => string.IsNullOrEmpty(AssemblyPath) || FileUtilities.FileExistsNoThrow(AssemblyPath);
Utilities\ToolLocationHelper_SDKDiscovery.cs (2)
166if (FileUtilities.FileExistsNoThrow(pathToSDKManifest)) 673if (FileUtilities.FileExistsNoThrow(pathToPlatformManifest))
Microsoft.Build.Tasks.Core (7)
AssemblyDependency\ResolveAssemblyReference.cs (2)
3829if (_stateFile.Value is not null && FileUtilities.FileExistsNoThrow(_stateFile.Value)) 3846p => FileUtilities.FileExistsNoThrow(p),
FileIO\WriteLinesToFile.cs (1)
277if (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)
757if (!string.IsNullOrEmpty(cachedEntry.AssemblyPath) && !FileUtilities.FileExistsNoThrow(cachedEntry.AssemblyPath))
SystemState.cs (1)
651if (FileUtilities.FileExistsNoThrow(stateFile))
Microsoft.Build.Utilities.Core (1)
TrackedDependencies\TrackedDependencies.cs (1)
84if (!FileUtilities.FileExistsNoThrow(item.ItemSpec))