2 types derived from FileNotFoundException
Mono.Cecil (2)
Mono.Cecil.Cil\Symbols.cs (1)
868 public sealed class SymbolsNotFoundException : FileNotFoundException {
Mono.Cecil\BaseAssemblyResolver.cs (1)
40 public sealed class AssemblyResolutionException : FileNotFoundException {
230 instantiations of FileNotFoundException
aspire (2)
Commands\UpdateCommand.cs (1)
786throw new FileNotFoundException($"Extracted CLI executable not found: {newExePath}");
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
aspire-managed (1)
NuGet\Commands\NuGetPackageAssetResolver.cs (1)
50throw new FileNotFoundException($"Assets file not found: {assetsPath}", assetsPath);
Aspire.Acquisition.Tests (2)
Scripts\Common\ScriptFunctionCommand.cs (1)
66throw new FileNotFoundException($"Script not found: {fullScriptPath}");
Scripts\Common\ScriptToolCommand.cs (1)
72throw new FileNotFoundException($"Script not found: {fullScriptPath}");
Aspire.Cli.EndToEnd.Tests (17)
ChannelUpdateWorkflowTests.cs (3)
490throw new FileNotFoundException($"Expected aspire.config.json at: {aspireConfigPath}", aspireConfigPath); 504throw new FileNotFoundException($"Expected aspire.config.json at: {aspireConfigPath}", aspireConfigPath); 528throw new FileNotFoundException($"Expected aspire.config.json at: {aspireConfigPath}", aspireConfigPath);
EmulatedLocalReleaseBuildTests.cs (4)
314throw new FileNotFoundException($"Expected AppHost project to exist: {csprojPath}", csprojPath); 329throw new FileNotFoundException($"Expected AppHost project to exist: {csprojPath}", csprojPath); 353throw new FileNotFoundException($"Expected aspire.config.json to exist: {configPath}", configPath); 373throw new FileNotFoundException($"Expected aspire.config.json to exist: {configPath}", configPath);
EmulatedReleasedBuildTests.cs (2)
227throw new FileNotFoundException($"Expected AppHost project to exist: {csprojPath}", csprojPath); 242throw new FileNotFoundException($"Expected aspire.config.json to exist: {configPath}", configPath);
EmulatedStagingBuildTests.cs (3)
291throw new FileNotFoundException($"Expected AppHost project to exist: {csprojPath}", csprojPath); 310throw new FileNotFoundException($"Expected aspire.config.json to exist: {configPath}", configPath); 337throw new FileNotFoundException($"Expected aspire.config.json to exist: {configPath}", configPath);
SmokeTests.cs (3)
172throw new FileNotFoundException($"Expected TypeScript AppHost file to exist: {appHostPath}", appHostPath); 186throw new FileNotFoundException($"Expected AppHost file to exist: {appHostPath}", appHostPath); 200throw new FileNotFoundException($"Expected Aspire config file to exist: {configPath}", configPath);
tests\Shared\CliInstallStrategy.cs (1)
299throw new FileNotFoundException($"LocalHive archive not found: {archivePath}");
TypeScriptStarterSmokeTests.cs (1)
103throw new FileNotFoundException($"Expected aspire.config.json to exist at {configPath}.", configPath);
Aspire.Dashboard.Tests (1)
tests\Shared\Playwright\PlaywrightProvider.cs (1)
22throw new FileNotFoundException($"Browser path {BrowserPathEnvironmentVariableName}='{browserPath}' does not exist");
Aspire.Deployment.EndToEnd.Tests (1)
tests\Shared\CliInstallStrategy.cs (1)
299throw new FileNotFoundException($"LocalHive archive not found: {archivePath}");
Aspire.EndToEnd.Tests (1)
tests\Shared\Playwright\PlaywrightProvider.cs (1)
22throw new FileNotFoundException($"Browser path {BrowserPathEnvironmentVariableName}='{browserPath}' does not exist");
Aspire.Hosting (5)
ApplicationModel\AspireStoreExtensions.cs (1)
28throw new FileNotFoundException("The source file does not exist.", sourceFilename);
Dcp\DcpDependencyCheck.cs (1)
49throw new FileNotFoundException($"The Aspire orchestration component is not installed at \"{dcpPath}\". The application cannot be run without it.", dcpPath);
Dcp\DcpHost.cs (1)
300throw new FileNotFoundException($"The Developer Control Plane is not installed at \"{dcpExePath}\". The application cannot be run without it.", dcpExePath);
DistributedApplicationOptions.cs (1)
226throw new FileNotFoundException($"No assembly with name '{AssemblyName}' exists in the current AppDomain.");
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
Aspire.Hosting.Azure (1)
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
Aspire.Hosting.Azure.Kubernetes (1)
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
Aspire.Hosting.Blazor (1)
BlazorGatewayExtensions.cs (1)
586throw new FileNotFoundException(
Aspire.Hosting.Browsers (1)
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
Aspire.Hosting.Browsers.Tests (1)
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
Aspire.Hosting.Docker (1)
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Playwright\PlaywrightProvider.cs (1)
22throw new FileNotFoundException($"Browser path {BrowserPathEnvironmentVariableName}='{browserPath}' does not exist");
Aspire.Hosting.Tests (1)
Dcp\DcpHostNotificationTests.cs (1)
718throw new FileNotFoundException("Could not locate test certificate file 'testCert.pfx' in expected locations.");
Aspire.Playground.Tests (2)
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
tests\Shared\Playwright\PlaywrightProvider.cs (1)
22throw new FileNotFoundException($"Browser path {BrowserPathEnvironmentVariableName}='{browserPath}' does not exist");
Aspire.RuntimeIdentifier.Tool (1)
Program.cs (1)
51throw new FileNotFoundException("File {0} does not exist. Please ensure the runtime graph path exists.", rgp);
Aspire.Templates.Tests (1)
tests\Shared\Playwright\PlaywrightProvider.cs (1)
22throw new FileNotFoundException($"Browser path {BrowserPathEnvironmentVariableName}='{browserPath}' does not exist");
Aspire.TestUtilities (1)
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
dotnet (1)
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (1)
207throw new FileNotFoundException(message: null, projectToLoad);
dotnet-format (5)
Workspaces\MSBuildWorkspaceFinder.cs (5)
42throw new FileNotFoundException(string.Format(Resources.Both_a_MSBuild_project_file_and_solution_file_found_in_0_Specify_which_to_use_with_the_workspace_argument, searchDirectory)); 55throw new FileNotFoundException(string.Format(Resources.Could_not_find_a_MSBuild_project_or_solution_file_in_0_Specify_which_to_use_with_the_workspace_argument, searchDirectory)); 72throw new FileNotFoundException(string.Format(Resources.The_file_0_does_not_appear_to_be_a_valid_project_solution_file_or_file_based_app, Path.GetFileName(workspacePath))); 80throw new FileNotFoundException(string.Format(message, workspacePath)); 105throw new FileNotFoundException(string.Format(multipleFilesFoundError, searchBase));
dotnet-svcutil-lib (1)
Metadata\MetadataFileNameManager.cs (1)
261throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrNoFilesFoundFormat, path));
dotnet-user-jwts (3)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (3)
36throw new FileNotFoundException(SecretsHelpersResources.FormatError_MultipleProjectsFound(projectPath)); 41throw new FileNotFoundException(SecretsHelpersResources.FormatError_NoProjectsFound(projectPath)); 49throw new FileNotFoundException(SecretsHelpersResources.FormatError_File_NotFound(projectPath));
dotnet-user-secrets (3)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (3)
36throw new FileNotFoundException(SecretsHelpersResources.FormatError_MultipleProjectsFound(projectPath)); 41throw new FileNotFoundException(SecretsHelpersResources.FormatError_NoProjectsFound(projectPath)); 49throw new FileNotFoundException(SecretsHelpersResources.FormatError_File_NotFound(projectPath));
dotnet-watch (1)
Watch\MsBuildFileSetFactory.cs (1)
197return targetPath ?? throw new FileNotFoundException("Fatal error: could not find DotNetWatch.targets");
ilasm (2)
Program.cs (2)
199throw new FileNotFoundException($"Include file not found: {path}"); 217throw new FileNotFoundException($"Resource file not found: {path}");
ILCompiler.Compiler (2)
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.cs (2)
234throw new FileNotFoundException("Assembly name does not match filename " + filePath); 252throw new FileNotFoundException("Module with same simple name already exists " + filePath);
ILCompiler.ReadyToRun (2)
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.cs (2)
234throw new FileNotFoundException("Assembly name does not match filename " + filePath); 252throw new FileNotFoundException("Module with same simple name already exists " + filePath);
Infrastructure.Tests (1)
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
Microsoft.Analyzers.Extra.Tests (1)
RoslynTestUtils.cs (1)
84throw new FileNotFoundException(name);
Microsoft.Analyzers.Local.Tests (1)
RoslynTestUtils.cs (1)
84throw new FileNotFoundException(name);
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\E2EManifest.cs (1)
26throw new FileNotFoundException(
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
DebugProxyLauncher.cs (1)
132throw new FileNotFoundException(
Microsoft.AspNetCore.Http.Results (2)
PhysicalFileHttpResult.cs (1)
115throw new FileNotFoundException($"Could not find file: {FileName}", FileName);
VirtualFileHttpResult.cs (1)
111throw new FileNotFoundException($"Could not find file: {FileName}.", FileName);
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\PhysicalFileResultExecutor.cs (1)
34throw new FileNotFoundException(
Infrastructure\VirtualFileResultExecutor.cs (1)
42throw new FileNotFoundException(
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
87throw new FileNotFoundException($"The file '{_resource.AssetPath}' could not be found.");
Microsoft.Build (2)
src\msbuild\src\Shared\TypeLoader.cs (2)
260throw new FileNotFoundException(null, assemblyLoadInfo.AssemblyLocation, e); 269throw new FileNotFoundException(null, assemblyLoadInfo.AssemblyLocation);
Microsoft.Build.Tasks.Core (2)
ManifestUtil\Manifest.cs (1)
496throw new FileNotFoundException(null, f.SourcePath);
ManifestUtil\SecurityUtil.cs (1)
678throw new FileNotFoundException(String.Format(CultureInfo.InvariantCulture, resources.GetString("SecurityUtil.SignTargetNotFound"), path), path);
Microsoft.CodeAnalysis (1)
FileSystem\ICommonCompilerFileSystem.cs (1)
40throw new FileNotFoundException(e.Message, filePath, e);
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\DebuggingSession.cs (2)
399throw new FileNotFoundException(); 409throw new FileNotFoundException();
Microsoft.CodeAnalysis.Workspaces (1)
Serialization\SerializerService_Reference.cs (1)
586throw new FileNotFoundException(FilePath);
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\PathResolver.cs (2)
39msg => new FileNotFoundException(msg)); 64msg => new FileNotFoundException(msg));
Microsoft.Data.Analysis (1)
TextFieldParser.cs (1)
587throw new FileNotFoundException(Strings.FileNotFound);
Microsoft.Data.Analysis.Tests (1)
src\Microsoft.Data.Analysis\TextFieldParser.cs (1)
587throw new FileNotFoundException(Strings.FileNotFound);
Microsoft.Deployment.DotNet.Releases (2)
Utils.cs (2)
100throw new FileNotFoundException(string.Format(ReleasesResources.FileNotFound, fileName)); 139throw new FileNotFoundException(string.Format(ReleasesResources.FileNotFound, path));
Microsoft.DotNet.ApiSymbolExtensions (2)
AssemblySymbolLoader.cs (2)
307throw new FileNotFoundException(string.Format(Resources.ShouldProvideValidAssemblyName, directory), nameof(searchPaths)); 374throw new FileNotFoundException(string.Format(Resources.ProvidedPathToLoadBinariesFromNotFound, path));
Microsoft.DotNet.Build.Tasks.Installers (1)
src\CreateWixBuildWixpack.cs (1)
1029throw new FileNotFoundException($"Source file not found: {source}");
Microsoft.DotNet.Build.Tasks.Workloads (1)
Wix\WixToolTaskBase.cs (1)
44throw new FileNotFoundException("The specified tool executable was not found.", toolPath);
Microsoft.DotNet.GenFacades (1)
TypeParser.cs (1)
145throw new FileNotFoundException($"File {sourceFile} was not found.");
Microsoft.DotNet.PackageValidation (1)
Package.cs (1)
132throw new FileNotFoundException(string.Format(Resources.NonExistentPackagePath, packagePath));
Microsoft.DotNet.TemplateLocator (5)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (5)
187throw new FileNotFoundException(string.Format(Strings.WorkloadVersionNotFound, _workloadSetVersionFromConstructor)); 199_exceptionToThrow = new FileNotFoundException(string.Format(Strings.WorkloadVersionFromGlobalJsonNotFound, _globalJsonWorkloadSetVersion, _globalJsonPathFromConstructor)); 213throw new FileNotFoundException(string.Format(Strings.WorkloadVersionFromInstallStateNotFound, installState.WorkloadVersion, _installStateFilePath)); 416throw new FileNotFoundException(string.Format(Strings.ManifestFromWorkloadSetNotFound, manifestSpecifier.ToString(), _workloadSet.Version)); 437throw new FileNotFoundException(string.Format(Strings.ManifestFromInstallStateNotFound, manifestSpecifier.ToString(), _installStateFilePath));
Microsoft.DotNet.XliffTasks (1)
Tasks\XlfTask.cs (1)
94throw new FileNotFoundException($"File not found: {path}", path);
Microsoft.Extensions.AI.Evaluation.Reporting (3)
Storage\DiskBasedResponseCache.cs (3)
148throw new FileNotFoundException( 166throw new FileNotFoundException( 313throw new FileNotFoundException(
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (4)
Storage\AzureStorageResponseCache.cs (4)
95throw new FileNotFoundException( 116throw new FileNotFoundException( 248throw new FileNotFoundException( 271throw new FileNotFoundException(
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
173HandleException(ExceptionDispatchInfo.Capture(new FileNotFoundException(error.ToString())));
Microsoft.Extensions.DataIngestion.MarkItDown (2)
MarkItDownMcpReader.cs (1)
43throw new FileNotFoundException("The specified file does not exist.", source.FullName);
MarkItDownReader.cs (1)
41throw new FileNotFoundException("The specified file does not exist.", source.FullName);
Microsoft.Extensions.FileProviders.Abstractions (1)
NotFoundFileInfo.cs (1)
60throw new FileNotFoundException(SR.Format(SR.FileNotExists, Name));
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
RoslynTestUtils.cs (1)
108throw new FileNotFoundException(name);
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
RoslynTestUtils.cs (1)
108throw new FileNotFoundException(name);
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
RoslynTestUtils.cs (1)
108throw new FileNotFoundException(name);
Microsoft.Gen.Logging.Unit.Tests (1)
RoslynTestUtils.cs (1)
108throw new FileNotFoundException(name);
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
RoslynTestUtils.cs (1)
108throw new FileNotFoundException(name);
Microsoft.Gen.Metrics.Unit.Tests (1)
RoslynTestUtils.cs (1)
108throw new FileNotFoundException(name);
Microsoft.Gen.MetricsReports.Unit.Tests (1)
RoslynTestUtils.cs (1)
108throw new FileNotFoundException(name);
Microsoft.Maui (1)
Fonts\FontRegistrar.cs (1)
112 throw new FileNotFoundException($"Resource ending with {embeddedFont.Filename} not found.");
Microsoft.Maui.Resizetizer (2)
ResizeImageInfo.cs (2)
83 throw new FileNotFoundException("Unable to find background file: " + fileInfo.FullName, fileInfo.FullName); 122 throw new FileNotFoundException("Unable to find foreground file: " + fgFileInfo.FullName, fgFileInfo.FullName);
Microsoft.ML.PerformanceTests (8)
Numeric\Ranking.cs (5)
29throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _mslrWeb10kValidate)); 32throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _mslrWeb10kTrain)); 80throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _mslrWeb10kTest)); 83throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _mslrWeb10kValidate)); 86throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _mslrWeb10kTrain));
RffTransform.cs (1)
25throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _dataPathDigits));
Text\MultiClassClassification.cs (2)
26throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _dataPathWiki)); 103throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _dataPathWiki));
Microsoft.ML.TestFrameworkCommon (2)
Utility\LibraryLoader.cs (2)
51throw new FileNotFoundException("Could not find or load the native library: " + name); 83throw new FileNotFoundException($"Could not find or load the native library from any name: [ {string.Join(", ", names)} ]");
Microsoft.NET.Build.Tasks (5)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (5)
187throw new FileNotFoundException(string.Format(Strings.WorkloadVersionNotFound, _workloadSetVersionFromConstructor)); 199_exceptionToThrow = new FileNotFoundException(string.Format(Strings.WorkloadVersionFromGlobalJsonNotFound, _globalJsonWorkloadSetVersion, _globalJsonPathFromConstructor)); 213throw new FileNotFoundException(string.Format(Strings.WorkloadVersionFromInstallStateNotFound, installState.WorkloadVersion, _installStateFilePath)); 416throw new FileNotFoundException(string.Format(Strings.ManifestFromWorkloadSetNotFound, manifestSpecifier.ToString(), _workloadSet.Version)); 437throw new FileNotFoundException(string.Format(Strings.ManifestFromInstallStateNotFound, manifestSpecifier.ToString(), _installStateFilePath));
Microsoft.NET.Sdk.WorkloadManifestReader (5)
SdkDirectoryWorkloadManifestProvider.cs (5)
187throw new FileNotFoundException(string.Format(Strings.WorkloadVersionNotFound, _workloadSetVersionFromConstructor)); 199_exceptionToThrow = new FileNotFoundException(string.Format(Strings.WorkloadVersionFromGlobalJsonNotFound, _globalJsonWorkloadSetVersion, _globalJsonPathFromConstructor)); 213throw new FileNotFoundException(string.Format(Strings.WorkloadVersionFromInstallStateNotFound, installState.WorkloadVersion, _installStateFilePath)); 416throw new FileNotFoundException(string.Format(Strings.ManifestFromWorkloadSetNotFound, manifestSpecifier.ToString(), _workloadSet.Version)); 437throw new FileNotFoundException(string.Format(Strings.ManifestFromInstallStateNotFound, manifestSpecifier.ToString(), _installStateFilePath));
Microsoft.Private.Windows.Core (1)
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (1)
49return new FileNotFoundException(SR.GdiplusFileNotFound);
Microsoft.TemplateEngine.Edge (4)
Mount\Archive\ZipFileFile.cs (3)
29throw new FileNotFoundException("File not found", FullPath); 33throw new FileNotFoundException("File not found", FullPath); 38throw new FileNotFoundException("File not found", FullPath);
Settings\TemplateCache.cs (1)
230throw new FileNotFoundException($"Host file '{hostFile?.GetDisplayPath()}' does not exist.");
Microsoft.TemplateEngine.Utils (5)
InMemoryFileSystem.cs (5)
516throw new FileNotFoundException("File not found", path); 574throw new FileNotFoundException("File not found", file); 606throw new FileNotFoundException("File not found", file); 637throw new FileNotFoundException("File not found", file); 668throw new FileNotFoundException("File not found", file);
Microsoft.TestPlatform.CoreUtilities (2)
Helpers\DotnetHostHelper.cs (2)
87throw new FileNotFoundException(errorMessage); 100throw new FileNotFoundException(errorMessage);
Microsoft.TestPlatform.Extensions.BlameDataCollector (3)
ProcessDumpUtility.cs (1)
84throw new FileNotFoundException(Resources.Resources.DumpFileNotGeneratedErrorMessage);
WindowsHangDumper.cs (1)
149throw new FileNotFoundException("Could not find DumpMinitool", dumpMinitoolPath);
XmlReaderWriter.cs (1)
109throw new FileNotFoundException();
Microsoft.TestPlatform.PlatformAbstractions (1)
common\System\ProcessHelper.cs (1)
60throw new FileNotFoundException("Path does not exist: " + processPath, processPath);
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
VsTestConsoleProcessManager.cs (1)
125throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, InternalResources.CannotFindConsoleRunner, consoleRunnerPath), consoleRunnerPath);
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (2)
254Return New IO.FileNotFoundException(Description) 277Return New IO.FileNotFoundException(Description)
Microsoft.VisualStudio.TestPlatform.Common (1)
DataCollection\DataCollectionAttachmentManager.cs (1)
203throw new FileNotFoundException(
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
DataCollector\TransferInformation\FileTransferInformation.cs (1)
63throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.Common_FileNotExist, [path]), path);
MSBuild (2)
src\msbuild\src\Shared\TypeLoader.cs (2)
260throw new FileNotFoundException(null, assemblyLoadInfo.AssemblyLocation, e); 269throw new FileNotFoundException(null, assemblyLoadInfo.AssemblyLocation);
NuGet.Commands (1)
RestoreCommand\RestoreRunner.cs (1)
388throw new FileNotFoundException(input);
NuGet.PackageManagement (1)
Utility\PackagesConfigLockFileUtility.cs (1)
293throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, Strings.Error_FileDoesNotExist, pcFile), pcFile);
NuGet.Packaging (3)
PackageExtraction\ZipArchiveExtensions.cs (1)
25throw new FileNotFoundException(path);
PackageFolderReader.cs (2)
101throw new FileNotFoundException(path); 187throw new FileNotFoundException(file.FullName);
PresentationCore (5)
MS\Internal\FontCache\FontCacheUtil.cs (1)
748throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, fileName), fileName);
MS\Internal\Text\TextInterface\DWriteUtil.cs (1)
20throw new System.IO.FileNotFoundException();
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (2)
926return new System.IO.FileNotFoundException(SR.Format(SR.Media_DownloadFailed, null), exceptionForHR); 932return new System.IO.FileNotFoundException(SR.Media_FileNotFound, exceptionForHR);
System\Windows\Media\ColorContext.cs (1)
541throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, profileUri.AbsolutePath), profileUri.AbsolutePath);
ResultsOfTGenerator (2)
Program.cs (2)
210throw new FileNotFoundException(classFilePath); 296throw new FileNotFoundException(testFilePath);
sdk-tasks (2)
CopyPreservingRelativeSymlinks.cs (1)
89throw new FileNotFoundException($"Source file does not exist: '{sourcePath}'");
ReplaceFileContents.cs (1)
70throw new FileNotFoundException($"Expected files where not found: {filesNotFoundString}");
System.Console (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) : 127new FileNotFoundException(SR.IO_FileNotFound);
System.Diagnostics.FileVersionInfo (2)
System\Diagnostics\FileVersionInfo.cs (1)
308throw new FileNotFoundException(fileName);
System\Diagnostics\FileVersionInfo.Unix.cs (1)
22throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, _fileName), _fileName);
System.Drawing.Common (3)
System\Drawing\Icon.cs (1)
160throw new FileNotFoundException(message: null, fileName: filePath);
System\Drawing\Image.cs (1)
93throw new FileNotFoundException(filename);
System\Drawing\Text\PrivateFontCollection.cs (1)
55throw new FileNotFoundException();
System.Formats.Tar (4)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) : 127new FileNotFoundException(SR.IO_FileNotFound);
System\Formats\Tar\TarFile.cs (2)
438throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, sourceFileName)); 507return Task.FromException(new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, sourceFileName)));
System.IO.FileSystem.AccessControl (3)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
34return new FileNotFoundException(
System\Security\AccessControl\FileSystemSecurity.cs (2)
56exception = new FileNotFoundException(name); 58exception = new FileNotFoundException();
System.IO.FileSystem.DriveInfo (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) : 127new FileNotFoundException(SR.IO_FileNotFound);
System.IO.FileSystem.Watcher (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) : 127new FileNotFoundException(SR.IO_FileNotFound);
System.IO.IsolatedStorage (2)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (2)
307throw new FileNotFoundException(SR.Format(SR.PathNotFound_Path, sourceFileName)); 335throw new FileNotFoundException(SR.Format(SR.PathNotFound_Path, sourceFileName));
System.IO.MemoryMappedFiles (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) : 127new FileNotFoundException(SR.IO_FileNotFound);
System.IO.Pipes (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) : 127new FileNotFoundException(SR.IO_FileNotFound);
System.IO.Ports (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) : 127new FileNotFoundException(SR.IO_FileNotFound);
System.Private.CoreLib (12)
Internal\Runtime\TypeLoaderExceptionHelper.cs (1)
49throw new System.IO.FileNotFoundException(SR.Format(GetFormatString(id), fileName), fileName);
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) : 127new FileNotFoundException(SR.IO_FileNotFound);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
1084throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, fullSourceFileName), fullSourceFileName);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (2)
40throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, FullPath), FullPath); 189throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, FullName), FullName);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
292throw new FileNotFoundException(SR.Format(SR.FileNotFound_LoadFile, normalizedPath), normalizedPath);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (2)
785return new System.IO.FileNotFoundException(); 916return new System.IO.FileNotFoundException
System\Reflection\Runtime\Assemblies\RuntimeAssemblyInfo.cs (2)
248throw new FileNotFoundException(); 254throw new FileNotFoundException();
System\Reflection\TypeNameResolver.NativeAot.cs (1)
111throw new FileNotFoundException(SR.Format(SR.FileNotFound_ResolveAssembly, assemblyName));
System.Private.TypeLoader (1)
Internal\Reflection\Execution\AssemblyBinderImplementation.cs (1)
74exception = preferredException ?? new FileNotFoundException(SR.Format(SR.FileNotFound_AssemblyNotFound, refName.FullName));
System.Private.Windows.Core (1)
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (1)
49return new FileNotFoundException(SR.GdiplusFileNotFound);
System.Private.Xml (1)
System\Xml\Serialization\Compilation.cs (1)
212throw new FileNotFoundException(null, serializerName);
System.Reflection.MetadataLoadContext (3)
System\Reflection\MetadataLoadContext.CoreAssembly.cs (1)
49e = new FileNotFoundException(SR.UnableToDetermineCoreAssembly);
System\Reflection\MetadataLoadContext.Resolving.cs (1)
64return new RoExceptionAssembly(new FileNotFoundException(SR.Format(SR.FileNotFoundAssembly, refName.FullName)));
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.Modules.cs (1)
33throw new FileNotFoundException(SR.Format(SR.FileNotFoundModule, moduleName));
System.Security.AccessControl (3)
System\Security\AccessControl\NativeObjectSecurity.cs (3)
123exception = new FileNotFoundException(name); 129false => new FileNotFoundException(name), 269exception = new FileNotFoundException();
System.Speech (1)
Recognition\RecognizerBase.cs (1)
1621throw new FileNotFoundException(SR.Get(SRID.ReferencedGrammarNotFound), e);
System.Threading.AccessControl (1)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
34return new FileNotFoundException(
System.Windows.Extensions (3)
System\Media\SoundPlayer.cs (3)
145throw new FileNotFoundException(SR.SoundAPIFileDoesNotExist, _soundLocation); 195throw new FileNotFoundException(SR.SoundAPIFileDoesNotExist, _soundLocation); 544throw new FileNotFoundException(SR.SoundAPIFileDoesNotExist, _soundLocation);
TypeScriptApiCompat (1)
ExcludedPackageLoader.cs (1)
17throw new FileNotFoundException($"Excluded packages file '{filePath}' does not exist.", filePath);
223 references to FileNotFoundException
aspire (7)
src\Shared\BundleVersionLease.cs (1)
228catch (FileNotFoundException)
src\Shared\ContainerRuntimeDetector.cs (1)
233catch (Exception ex) when (ex is System.ComponentModel.Win32Exception or FileNotFoundException)
src\Shared\PathLookupHelper.cs (2)
19/// <exception cref="FileNotFoundException">Thrown when <paramref name="executablePath"/> is a command name that is not found on PATH.</exception> 65catch (FileNotFoundException)
src\Shared\PathNormalizer.cs (1)
259catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException)
Utils\ReparsePoint.cs (2)
207catch (FileNotFoundException) 244catch (FileNotFoundException)
aspire-managed (1)
src\Shared\BundleVersionLease.cs (1)
228catch (FileNotFoundException)
Aspire.Dashboard.Tests (2)
Integration\StartupTests.cs (2)
183var ex = await Assert.ThrowsAsync<FileNotFoundException>(async () =>
Aspire.Hosting (5)
ApplicationModel\AspireStoreExtensions.cs (1)
19/// <exception cref="FileNotFoundException">Thrown when the source file does not exist.</exception>
src\Shared\ContainerRuntimeDetector.cs (1)
233catch (Exception ex) when (ex is System.ComponentModel.Win32Exception or FileNotFoundException)
src\Shared\PathLookupHelper.cs (2)
19/// <exception cref="FileNotFoundException">Thrown when <paramref name="executablePath"/> is a command name that is not found on PATH.</exception> 65catch (FileNotFoundException)
src\Shared\PathNormalizer.cs (1)
259catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException)
Aspire.Hosting.Azure (2)
src\Shared\PathLookupHelper.cs (2)
19/// <exception cref="FileNotFoundException">Thrown when <paramref name="executablePath"/> is a command name that is not found on PATH.</exception> 65catch (FileNotFoundException)
Aspire.Hosting.Azure.Kubernetes (2)
src\Shared\PathLookupHelper.cs (2)
19/// <exception cref="FileNotFoundException">Thrown when <paramref name="executablePath"/> is a command name that is not found on PATH.</exception> 65catch (FileNotFoundException)
Aspire.Hosting.Browsers (2)
src\Shared\PathLookupHelper.cs (2)
19/// <exception cref="FileNotFoundException">Thrown when <paramref name="executablePath"/> is a command name that is not found on PATH.</exception> 65catch (FileNotFoundException)
Aspire.Hosting.Browsers.Tests (2)
src\Shared\PathLookupHelper.cs (2)
19/// <exception cref="FileNotFoundException">Thrown when <paramref name="executablePath"/> is a command name that is not found on PATH.</exception> 65catch (FileNotFoundException)
Aspire.Hosting.Docker (2)
src\Shared\PathLookupHelper.cs (2)
19/// <exception cref="FileNotFoundException">Thrown when <paramref name="executablePath"/> is a command name that is not found on PATH.</exception> 65catch (FileNotFoundException)
Aspire.Hosting.Dotnet (1)
src\Shared\PathNormalizer.cs (1)
259catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException)
Aspire.Hosting.Java (1)
src\Shared\PathNormalizer.cs (1)
259catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException)
Aspire.Hosting.JavaScript (1)
src\Shared\PathNormalizer.cs (1)
259catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException)
Aspire.Hosting.Maui (1)
src\Shared\PathNormalizer.cs (1)
259catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException)
Aspire.Hosting.Radius (1)
Publishing\RadiusDeploymentPipelineStep.cs (1)
71catch (Exception ex) when (ex is System.ComponentModel.Win32Exception or FileNotFoundException or OperationCanceledException)
Aspire.Hosting.Rust (1)
src\Shared\PathNormalizer.cs (1)
259catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException)
Aspire.Hosting.Rust.Tests (2)
AddRustAppPublishTests.cs (2)
853Assert.IsType<FileNotFoundException>(exception); 865Assert.IsType<FileNotFoundException>(exception);
Aspire.Hosting.Tests (3)
AspireStoreTests.cs (1)
115Assert.Throws<FileNotFoundException>(() => store.GetFileNameWithContent("testfile.txt", "randomfilename.txt"));
PathLookupHelperTests.cs (2)
31var exception = Assert.Throws<FileNotFoundException>(() => PathLookupHelper.ResolveExecutablePath(
Aspire.Playground.Tests (2)
src\Shared\PathLookupHelper.cs (2)
19/// <exception cref="FileNotFoundException">Thrown when <paramref name="executablePath"/> is a command name that is not found on PATH.</exception> 65catch (FileNotFoundException)
Aspire.TerminalHost.Tests (1)
TerminalHostAppTests.cs (1)
918catch (FileNotFoundException)
Aspire.TestUtilities (2)
src\Shared\PathLookupHelper.cs (2)
19/// <exception cref="FileNotFoundException">Thrown when <paramref name="executablePath"/> is a command name that is not found on PATH.</exception> 65catch (FileNotFoundException)
crossgen2 (1)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
456catch (FileNotFoundException)
csc (1)
src\roslyn\src\Compilers\CSharp\csc\Program.cs (1)
20catch (FileNotFoundException e)
dotnet (4)
Commands\Sdk\Check\ProductCollectionProvider.cs (2)
34ex is FileNotFoundException || 37aggregateEx.InnerException is FileNotFoundException))
Commands\Workload\GlobalJsonWorkloadSetFile.cs (1)
47catch (FileNotFoundException)
NugetPackageDownloader\FirstPartyNuGetPackageSigningVerifier.cs (1)
125catch (FileNotFoundException)
dotnet-aot (3)
src\sdk\src\Cli\dotnet\Commands\Sdk\Check\ProductCollectionProvider.cs (2)
34ex is FileNotFoundException || 37aggregateEx.InnerException is FileNotFoundException))
src\sdk\src\Cli\dotnet\NugetPackageDownloader\FirstPartyNuGetPackageSigningVerifier.cs (1)
125catch (FileNotFoundException)
dotnet-Microsoft.XmlSerializer.Generator (2)
Sgen.cs (2)
299catch (FileNotFoundException e) 693catch (FileNotFoundException)
dotnet-svcutil-lib (1)
TypeLoader.cs (1)
104catch (FileNotFoundException)
ilc (1)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
456catch (FileNotFoundException)
Infrastructure.Tests (3)
src\Shared\PathLookupHelper.cs (2)
19/// <exception cref="FileNotFoundException">Thrown when <paramref name="executablePath"/> is a command name that is not found on PATH.</exception> 65catch (FileNotFoundException)
TestTriggerMap\SelectTestsCliTests.cs (1)
411Assert.Throws<FileNotFoundException>(() =>
Microsoft.Analyzers.Local (1)
ModelLoader.cs (1)
51catch (FileNotFoundException)
Microsoft.AspNetCore (1)
WebApplicationBuilder.cs (1)
308catch (FileNotFoundException)
Microsoft.AspNetCore.Components.WebAssembly (2)
Services\LazyAssemblyLoader.cs (2)
59catch (FileNotFoundException ex) 93catch (FileNotFoundException)
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
161catch (FileNotFoundException)
Microsoft.AspNetCore.StaticFiles (3)
HtmlDirectoryFormatter.cs (2)
155catch (FileNotFoundException) 191catch (FileNotFoundException)
StaticFileContext.cs (1)
329catch (FileNotFoundException)
Microsoft.Build (4)
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
354catch (Exception e) when ((e is FileNotFoundException || e is FileLoadException) && sdkResolver.GetType().Name.Equals("NuGetSdkResolver", StringComparison.Ordinal))
Evaluation\Expander.Function.cs (1)
826catch (FileNotFoundException)
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
490catch (FileNotFoundException e)
src\msbuild\src\Shared\TaskEngineAssemblyResolver.cs (1)
134catch (FileNotFoundException)
Microsoft.Build.Framework (1)
Utilities\AssemblyNameExtension.cs (1)
198catch (FileNotFoundException)
Microsoft.Build.Tasks.Core (6)
AssemblyDependency\ReferenceTable.cs (2)
695catch (FileNotFoundException e) // Why isn't this covered in NotExpectedException? 1215catch (FileNotFoundException e) // Why isn't this covered in NotExpectedException?
AssemblyDependency\ResolveAssemblyReference.cs (1)
2812catch (System.IO.FileNotFoundException)
ManifestUtil\XmlUtil.cs (2)
171catch (FileNotFoundException) 188catch (FileNotFoundException)
SignFile.cs (1)
73catch (FileNotFoundException ex)
Microsoft.Build.Tasks.Git (4)
GitDataReader\GitConfig.Reader.cs (1)
211catch (Exception e) when (e is FileNotFoundException or DirectoryNotFoundException)
GitDataReader\GitIgnore.cs (1)
115catch (Exception e) when (e is FileNotFoundException or DirectoryNotFoundException)
GitDataReader\GitReferenceResolver.cs (2)
205catch (FileNotFoundException) 370catch (Exception e) when (e is ArgumentException or FileNotFoundException or DirectoryNotFoundException)
Microsoft.CodeAnalysis (11)
CommandLine\CommonCompiler.cs (1)
506if (e is FileNotFoundException || e is DirectoryNotFoundException)
MetadataReference\ModuleMetadata.cs (1)
258/// <exception cref="FileNotFoundException">File <paramref name="path"/> not found.</exception>
MetadataReference\PortableExecutableReference.cs (5)
137/// <exception cref="FileNotFoundException">The metadata image is stored in a file that can't be found.</exception> 167/// <exception cref="FileNotFoundException">The metadata image is stored in a file that can't be found.</exception> 180/// <exception cref="FileNotFoundException">The metadata image is stored in a file that can't be found.</exception> 194var fileNotFound = e as FileNotFoundException;
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
473/// If any of the following exceptions: <see cref="BadImageFormatException"/>, <see cref="FileNotFoundException"/>, <see cref="IOException"/>,
RuleSet\RuleSet.cs (1)
322if (e is FileNotFoundException || e.GetType().Name == "DirectoryNotFoundException")
RuleSet\RuleSetInclude.cs (1)
63catch (FileNotFoundException)
src\roslyn\src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (1)
36var fusionLog = (exception as FileNotFoundException)?.FusionLog;
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\DebuggingSession.cs (1)
293catch (Exception e) when (e is FileNotFoundException or DirectoryNotFoundException)
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (1)
91catch (Exception e) when (e is FileNotFoundException or DirectoryNotFoundException)
src\roslyn\src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (1)
36var fusionLog = (exception as FileNotFoundException)?.FusionLog;
Microsoft.CodeAnalysis.Scripting (3)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (1)
131catch (FileNotFoundException)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
620catch (Exception e) when (fileMayNotExist && e is FileNotFoundException or DirectoryNotFoundException)
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (1)
153if (e is FileNotFoundException || e is DirectoryNotFoundException)
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (1)
MonoMSBuildDiscovery.cs (1)
184catch (FileNotFoundException)
Microsoft.Deployment.DotNet.Releases (2)
ProductCollection.cs (1)
96/// <exception cref="FileNotFoundException">If <paramref name="downloadLatest"/> is <see langword="false"/> and
Utils.cs (1)
80/// <exception cref="FileNotFoundException" />
Microsoft.DotNet.ApiCompatibility (1)
Logging\SuppressionEngine.cs (1)
46catch (FileNotFoundException) when (BaselineAllErrors)
Microsoft.DotNet.Build.Tasks.Workloads (1)
Wix\WixToolTaskBase.cs (1)
37/// <exception cref="FileNotFoundException"/>
Microsoft.DotNet.HotReload.Watch (2)
FileWatcher\PollingDirectoryWatcher.cs (1)
166catch (FileNotFoundException)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAssetsManifest.cs (1)
115catch (FileNotFoundException)
Microsoft.DotNet.XliffTasks (3)
Tasks\EnsureAllResourcesTranslated.cs (1)
44catch (FileNotFoundException)
Tasks\SortXlf.cs (1)
33catch (FileNotFoundException)
Tasks\UpdateXlf.cs (1)
46catch (FileNotFoundException fileNotFoundEx) when (fileNotFoundEx.FileName == xlfPath)
Microsoft.Extensions.Configuration.FileExtensions (3)
FileConfigurationProvider.cs (3)
107catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException) 155/// <param name="directoryException">Determines if <see cref="FileNotFoundException"/> or 187/// <exception cref="FileNotFoundException">Optional is <c>false</c> on the source and a
Microsoft.Extensions.DataIngestion.Tests (1)
Readers\MarkItDownMcpReaderTests.cs (1)
47await Assert.ThrowsAsync<FileNotFoundException>(async () => await reader.ReadAsync(nonExistentFile, "identifier"));
Microsoft.Extensions.FileProviders.Abstractions (1)
NotFoundFileInfo.cs (1)
55/// <exception cref="FileNotFoundException">In all cases.</exception>
Microsoft.Extensions.Hosting (1)
HostingHostBuilderExtensions.cs (1)
260catch (FileNotFoundException)
Microsoft.Maui (1)
Platform\ReflectionExtensions.cs (1)
16 catch (FileNotFoundException)
Microsoft.Maui.Controls (1)
Visuals\VisualTypeConverter.cs (1)
88 catch (FileNotFoundException)
Microsoft.NET.Build.Containers (1)
Registry\Registry.cs (1)
429catch (FileNotFoundException)
Microsoft.NET.HostModel (2)
ComHost\ComHost.cs (1)
62catch (FileNotFoundException ex)
ComHost\RegFreeComManifest.cs (1)
97catch (FileNotFoundException ex)
Microsoft.NET.Sdk.Publish.Tasks (1)
MsDeploy\CommonUtility.cs (1)
404catch (FileNotFoundException ex)
Microsoft.TemplateEngine.Edge (1)
Settings\TemplatePackageManager.cs (1)
284catch (FileNotFoundException)
Microsoft.TestPlatform.Extensions.BlameDataCollector (2)
BlameCollector.cs (2)
549catch (FileNotFoundException ex) 557catch (FileNotFoundException ex)
Microsoft.VisualBasic.Core (9)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
360ByVal ResourceID As String, ByVal ParamArray PlaceHolders() As String) As IO.FileNotFoundException
Microsoft\VisualBasic\CompilerServices\VB6InputFile.vb (1)
36Catch ex As FileNotFoundException
Microsoft\VisualBasic\CompilerServices\VB6OutputFile.vb (1)
50Catch ex As FileNotFoundException
Microsoft\VisualBasic\CompilerServices\VB6RandomFile.vb (1)
36Catch ex As FileNotFoundException
Microsoft\VisualBasic\FileIO\FileSystem.vb (4)
546''' <exception cref="IO.FileNotFoundException">if a file does not exist at FilePath</exception> 658''' <exception cref="IO.FileNotFoundException">If directory does not point to an existing directory.</exception> 701''' <exception cref="IO.FileNotFoundException">If file does not point to an existing file.</exception> 1332TypeOf ex Is IO.FileNotFoundException Or TypeOf ex Is ObjectDisposedException Or
Microsoft\VisualBasic\FileSystem.vb (1)
290Catch ex As FileNotFoundException
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Navigation\PortableSymbolReader.cs (1)
100catch (FileNotFoundException)
Mono.Cecil (1)
Mono.Cecil.Cil\Symbols.cs (1)
1074 } catch (FileNotFoundException) {
MSBuild (1)
src\msbuild\src\Shared\TaskEngineAssemblyResolver.cs (1)
134catch (FileNotFoundException)
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
325[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.FileNotFoundException))]
netstandard (1)
netstandard.cs (1)
920[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.FileNotFoundException))]
NuGet.Commands (1)
SignCommand\CertificateProvider.cs (1)
104catch (FileNotFoundException)
NuGet.Configuration (2)
Settings\ConfigurationDefaults.cs (1)
43catch (FileNotFoundException)
Utility\FileSystemUtility.cs (1)
24catch (FileNotFoundException) { }
NuGet.PackageManagement (3)
Utility\FileSystemUtility.cs (1)
238catch (FileNotFoundException)
Utility\MSBuildNuGetProjectSystemUtility.cs (1)
33catch (FileNotFoundException) { }
Utility\XmlUtility.cs (1)
21catch (FileNotFoundException) { }
NuGet.Packaging (3)
PackageCreation\Authoring\PackageBuilder.cs (2)
683catch (FileNotFoundException e) 804catch (FileNotFoundException e)
Signing\TrustStore\CertificateBundleX509ChainFactory.cs (1)
54ex is FileNotFoundException ||
NuGet.Protocol (1)
Utility\CachingUtility.cs (1)
68catch (FileNotFoundException)
PresentationBuildTasks (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
2617catch (FileNotFoundException)
PresentationCore (2)
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\InputPane.cs (1)
195|| e is FileNotFoundException
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\UISettings.cs (1)
123catch (Exception e) when (e is TypeLoadException || e is FileNotFoundException)
PresentationFramework (2)
System\Windows\Documents\Serialization\SerializerProvider.cs (1)
156catch (FileNotFoundException)
System\Windows\SystemResources.cs (1)
795catch (FileNotFoundException)
PresentationUI (1)
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (1)
271(exception is System.IO.FileNotFoundException) ||
System.CommandLine (1)
Parsing\StringExtensions.cs (1)
343catch (FileNotFoundException)
System.ComponentModel.Composition (6)
System\ComponentModel\Composition\Hosting\AssemblyCatalog.cs (5)
54/// <exception cref="FileNotFoundException"> 110/// <exception cref="FileNotFoundException"> 167/// <exception cref="FileNotFoundException"> 231/// <exception cref="FileNotFoundException"> 568catch (FileNotFoundException)
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (1)
671catch (FileNotFoundException ex)
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.cs (1)
296/// <exception cref="FileNotFoundException"><paramref name="fileName"/> does not exist or cannot be accessed.</exception>
System.Drawing.Common (2)
System\Drawing\Image.cs (1)
69or FileNotFoundException)
System\Drawing\SystemFonts.cs (1)
145or FileNotFoundException);
System.Formats.Tar (4)
System\Formats\Tar\TarFile.cs (4)
400/// <exception cref="FileNotFoundException"> The <paramref name="sourceFileName"/> file path was not found.</exception> 419/// <exception cref="FileNotFoundException"> The <paramref name="sourceFileName"/> file path was not found.</exception> 463/// <exception cref="FileNotFoundException"> The <paramref name="sourceFileName"/> file path was not found.</exception> 484/// <exception cref="FileNotFoundException"> The <paramref name="sourceFileName"/> file path was not found.</exception>
System.IO (1)
System.IO.cs (1)
4[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.FileNotFoundException))]
System.IO.Compression.ZipFile (23)
System\IO\Compression\ZipFile.Create.Async.cs (3)
27/// <exception cref="FileNotFoundException">The file specified in archiveFileName was not found.</exception> 53/// <exception cref="FileNotFoundException">The file specified in <code>archiveFileName</code> was not found. </exception> 93/// <exception cref="FileNotFoundException">The file specified in <code>archiveFileName</code> was not found. </exception>
System\IO\Compression\ZipFile.Create.cs (3)
25/// <exception cref="FileNotFoundException">The file specified in archiveFileName was not found.</exception> 48/// <exception cref="FileNotFoundException">The file specified in <code>archiveFileName</code> was not found. </exception> 85/// <exception cref="FileNotFoundException">The file specified in <code>archiveFileName</code> was not found. </exception>
System\IO\Compression\ZipFile.Extract.Async.cs (5)
34/// <exception cref="FileNotFoundException">sourceArchive was not found.</exception> 69/// <exception cref="FileNotFoundException">sourceArchive was not found.</exception> 105/// <exception cref="FileNotFoundException">sourceArchive was not found.</exception> 162/// <exception cref="FileNotFoundException">sourceArchive was not found.</exception> 230/// <exception cref="FileNotFoundException">sourceArchive was not found.</exception>
System\IO\Compression\ZipFile.Extract.cs (5)
32/// <exception cref="FileNotFoundException">sourceArchive was not found.</exception> 64/// <exception cref="FileNotFoundException">sourceArchive was not found.</exception> 97/// <exception cref="FileNotFoundException">sourceArchive was not found.</exception> 151/// <exception cref="FileNotFoundException">sourceArchive was not found.</exception> 213/// <exception cref="FileNotFoundException">sourceArchive was not found.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.Async.cs (4)
35/// <exception cref="FileNotFoundException">The file specified in sourceFileName was not found. </exception> 62/// <exception cref="FileNotFoundException">The file specified in sourceFileName was not found.</exception> 96/// <exception cref="FileNotFoundException">The file specified in sourceFileName was not found. </exception> 125/// <exception cref="FileNotFoundException">The file specified in sourceFileName was not found.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (3)
35/// <exception cref="FileNotFoundException">The file specified in sourceFileName was not found. </exception> 66/// <exception cref="FileNotFoundException">The file specified in sourceFileName was not found. </exception> 112/// <exception cref="FileNotFoundException">The file specified in sourceFileName was not found. </exception>
System.IO.IsolatedStorage (2)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (2)
305catch (FileNotFoundException) 333catch (FileNotFoundException)
System.Net.NetworkInformation (3)
System\Net\NetworkInformation\LinuxNetworkInterface.cs (1)
61catch (Exception e) when (e is FileNotFoundException || e is UnauthorizedAccessException)
System\Net\NetworkInformation\UnixIPInterfaceProperties.cs (2)
93catch (FileNotFoundException) 106catch (FileNotFoundException)
System.Net.Sockets (5)
System\Net\Sockets\Socket.cs (2)
1294/// <exception cref="FileNotFoundException">The file <paramref name="fileName"/> was not found.</exception> 1322/// <exception cref="FileNotFoundException">The file <paramref name="fileName"/> was not found.</exception>
System\Net\Sockets\Socket.Tasks.cs (2)
709/// <exception cref="FileNotFoundException">The file <paramref name="fileName"/> was not found.</exception> 727/// <exception cref="FileNotFoundException">The file <paramref name="fileName"/> was not found.</exception>
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
275if (exc is FileNotFoundException fnfe)
System.Private.CoreLib (7)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
1453/// <exception cref="FileNotFoundException">The file specified by <paramref name="pathToTarget"/> does not exist.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (1)
247/// <exception cref="FileNotFoundException">The file specified by <paramref name="pathToTarget"/> does not exist.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystemInfo.cs (1)
139/// If the path doesn't exist as of the last cached state, the return value is `(UnixFileMode)(-1)`. <see cref="FileNotFoundException"/> or <see cref="DirectoryNotFoundException"/> can only be thrown when setting the value.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
366catch (FileNotFoundException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1012catch (FileNotFoundException fileNotFoundException) when (!_permitDeserialization)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (1)
120catch (FileNotFoundException ex)
System\Reflection\Assembly.NativeAot.cs (1)
96catch (FileNotFoundException)
System.Reflection.Metadata (2)
System\Reflection\Metadata\MetadataReader.netstandard.cs (1)
65/// <exception cref="FileNotFoundException">If <paramref name="assemblyFile"/> is not found.</exception>
System\Reflection\PortableExecutable\PEReader.cs (1)
816catch (FileNotFoundException)
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.TypeResolver.cs (1)
99catch (FileNotFoundException) { }
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
309[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.FileNotFoundException))]
System.Security.AccessControl (1)
System\Security\AccessControl\NativeObjectSecurity.cs (1)
13using FileNotFoundException = System.IO.FileNotFoundException;
System.ServiceModel.NetNamedPipe (2)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (2)
273catch (FileNotFoundException) 280catch(FileNotFoundException)
System.Speech (1)
Internal\ObjectToken\ObjectToken.cs (1)
293if (e is MissingMethodException || e is TypeLoadException || e is FileLoadException || e is FileNotFoundException || e is MethodAccessException || e is MemberAccessException || e is TargetInvocationException || e is InvalidComObjectException || e is NotSupportedException || e is FormatException)
System.Windows.Forms.Design (4)
System\Drawing\BitmapSelector.cs (1)
61catch (FileNotFoundException)
System\Drawing\Design\ToolboxItem.cs (2)
497catch (FileNotFoundException) 518catch (FileNotFoundException)
System\Windows\Forms\Design\ComponentTray.cs (1)
2355catch (FileNotFoundException e)
System.Xaml (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (1)
459catch (System.IO.FileNotFoundException)
UIAutomationClient (1)
MS\Internal\Automation\ProxyManager.cs (1)
55catch(System.IO.FileNotFoundException)
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
122catch (System.IO.FileNotFoundException)
vbc (1)
src\roslyn\src\Compilers\VisualBasic\vbc\Program.cs (1)
22catch (FileNotFoundException e)