129 references to FileNotFoundException
aspire (1)
Commands\UpdateCommand.cs (1)
786throw new FileNotFoundException($"Extracted CLI executable not found: {newExePath}");
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 (1)
tests\Shared\CliInstallStrategy.cs (1)
299throw new FileNotFoundException($"LocalHive archive not found: {archivePath}");
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 (1)
DistributedApplicationOptions.cs (1)
226throw new FileNotFoundException($"No assembly with name '{AssemblyName}' exists in the current AppDomain.");
Aspire.Hosting.Blazor (1)
BlazorGatewayExtensions.cs (1)
586throw new FileNotFoundException(
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 (1)
tests\Shared\Playwright\PlaywrightProvider.cs (1)
22throw new FileNotFoundException($"Browser path {BrowserPathEnvironmentVariableName}='{browserPath}' does not exist");
Aspire.Templates.Tests (1)
tests\Shared\Playwright\PlaywrightProvider.cs (1)
22throw new FileNotFoundException($"Browser path {BrowserPathEnvironmentVariableName}='{browserPath}' does not exist");
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);
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.WebAssembly.Server (1)
DebugProxyLauncher.cs (1)
132throw new FileNotFoundException(
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
87throw new FileNotFoundException($"The file '{_resource.AssetPath}' could not be found.");
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 (1)
AssemblySymbolLoader.cs (1)
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.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.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.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.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 (1)
Settings\TemplateCache.cs (1)
230throw new FileNotFoundException($"Host file '{hostFile?.GetDisplayPath()}' does not exist.");
Microsoft.TestPlatform.CoreUtilities (2)
Helpers\DotnetHostHelper.cs (2)
87throw new FileNotFoundException(errorMessage); 100throw new FileNotFoundException(errorMessage);
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
ProcessDumpUtility.cs (1)
84throw new FileNotFoundException(Resources.Resources.DumpFileNotGeneratedErrorMessage);
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(
Mono.Cecil (1)
Mono.Cecil.Cil\Symbols.cs (1)
870 public SymbolsNotFoundException (string message) : base (message)
NuGet.Commands (1)
RestoreCommand\RestoreRunner.cs (1)
388throw new FileNotFoundException(input);
NuGet.Packaging (3)
PackageExtraction\ZipArchiveExtensions.cs (1)
25throw new FileNotFoundException(path);
PackageFolderReader.cs (2)
101throw new FileNotFoundException(path); 187throw new FileNotFoundException(file.FullName);
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 (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
127new FileNotFoundException(SR.IO_FileNotFound);
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.cs (1)
308throw new FileNotFoundException(fileName);
System.Drawing.Common (1)
System\Drawing\Image.cs (1)
93throw new FileNotFoundException(filename);
System.Formats.Tar (3)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
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 (1)
System\Security\AccessControl\FileSystemSecurity.cs (1)
56exception = new FileNotFoundException(name);
System.IO.FileSystem.DriveInfo (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
127new FileNotFoundException(SR.IO_FileNotFound);
System.IO.FileSystem.Watcher (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
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 (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
127new FileNotFoundException(SR.IO_FileNotFound);
System.IO.Pipes (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
127new FileNotFoundException(SR.IO_FileNotFound);
System.IO.Ports (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
127new FileNotFoundException(SR.IO_FileNotFound);
System.Private.CoreLib (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
127new FileNotFoundException(SR.IO_FileNotFound);
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.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 (2)
System\Security\AccessControl\NativeObjectSecurity.cs (2)
123exception = new FileNotFoundException(name); 129false => new FileNotFoundException(name),