90 references to FileNotFoundException
Aspire.Dashboard.Tests (1)
tests\Shared\Playwright\PlaywrightProvider.cs (1)
22throw new FileNotFoundException($"Browser path {BrowserPathEnvironmentVariableName}='{browserPath}' does not exist");
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)
105throw new FileNotFoundException($"No assembly with name '{AssemblyName}' exists in the current AppDomain.");
Aspire.Templates.Tests (1)
tests\Shared\Playwright\PlaywrightProvider.cs (1)
22throw new FileNotFoundException($"Browser path {BrowserPathEnvironmentVariableName}='{browserPath}' does not exist");
dotnet-svcutil-lib (1)
Metadata\MetadataFileNameManager.cs (1)
261throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrNoFilesFoundFormat, path));
dotnet-user-jwts (3)
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_ProjectPath_NotFound(projectPath));
dotnet-user-secrets (3)
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_ProjectPath_NotFound(projectPath));
IdeCoreBenchmarks (1)
SyntacticChangeRangeBenchmark.cs (1)
36throw new FileNotFoundException(csFilePath);
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
84throw new FileNotFoundException(name);
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
84throw new FileNotFoundException(name);
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
DebugProxyLauncher.cs (1)
132throw new FileNotFoundException(
Microsoft.AspNetCore.Hosting.Tests (1)
Fakes\StartupThrowTypeLoadException.cs (1)
15exceptions: new Exception[] { new FileNotFoundException("Message from the LoaderException") },
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
87throw new FileNotFoundException($"The file '{_resource.AssetPath}' could not be found.");
Microsoft.Build.Tasks.UnitTests (3)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (3)
1049throw new FileNotFoundException(path); 1102throw new FileNotFoundException(path); 2262throw new FileNotFoundException(path);
Microsoft.CodeAnalysis.LanguageServer (2)
CustomExportAssemblyLoader.cs (1)
119throw new FileNotFoundException($"Could not find assembly {assemblyName} with code base {codeBasePath} in any extension context.");
HostWorkspace\HostDiagnosticAnalyzerProvider.cs (1)
40throw new FileNotFoundException($"Could not find razor dependency {dependency}");
Microsoft.CodeAnalysis.Workspaces (1)
Serialization\SerializerService_Reference.cs (1)
532throw 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.DotNet.Build.Tasks.Installers (3)
src\BuildFPMToolPreReqs.cs (3)
39throw new FileNotFoundException($"Expected file {ConfigJsonFile} was not found."); 70throw new FileNotFoundException($"Expected file {changelogFile} was not found."); 98throw new FileNotFoundException($"Expected file {copyrightFile} was not found.");
Microsoft.DotNet.Build.Tasks.Workloads (1)
WorkloadManifestPackage.wix.cs (1)
117throw new FileNotFoundException(string.Format(Strings.WorkloadManifestNotFound, primaryManifest, secondaryManifest));
Microsoft.DotNet.GenFacades (1)
TypeParser.cs (1)
145throw new FileNotFoundException($"File {sourceFile} was not found.");
Microsoft.DotNet.Helix.JobSender (1)
Payloads\ArchivePayload.cs (1)
24throw new FileNotFoundException($"The file '{pathToArchive}' was not found.");
Microsoft.DotNet.SignCheckLibrary (1)
Verification\DebVerifier.cs (1)
82throw new FileNotFoundException($"The entry '{entryName}' was not found in the archive '{archivePath}'");
Microsoft.Extensions.AI.Evaluation.Reporting (5)
Storage\DiskBasedResponseCache.cs (5)
61? throw new FileNotFoundException( 94? throw new FileNotFoundException( 173throw new FileNotFoundException( 195throw new FileNotFoundException( 361throw new FileNotFoundException(
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (2)
Storage\AzureStorageResponseCache.cs (2)
100throw new FileNotFoundException( 121throw new FileNotFoundException(
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
72HandleException(ExceptionDispatchInfo.Capture(new FileNotFoundException(error.ToString())));
Microsoft.Extensions.FileProviders.Abstractions (1)
NotFoundFileInfo.cs (1)
60throw new FileNotFoundException(SR.Format(SR.FileNotExists, Name));
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
108throw new FileNotFoundException(name);
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
108throw new FileNotFoundException(name);
Microsoft.Gen.Logging.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
108throw new FileNotFoundException(name);
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
108throw new FileNotFoundException(name);
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
108throw new FileNotFoundException(name);
Microsoft.Gen.MetricsReports.Unit.Tests (1)
test\Generators\Shared\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.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (2)
254Return New IO.FileNotFoundException(Description) 277Return New IO.FileNotFoundException(Description)
ResultsOfTGenerator (2)
Program.cs (2)
210throw new FileNotFoundException(classFilePath); 296throw new FileNotFoundException(testFilePath);
Roslyn.VisualStudio.Next.UnitTests (2)
Remote\SnapshotSerializationTests.cs (2)
711=> throw new FileNotFoundException(fullPath); 725=> throw new FileNotFoundException("can't find");
System.Console (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
127new FileNotFoundException(SR.IO_FileNotFound);
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.cs (1)
276throw new FileNotFoundException(fileName);
System.Formats.Tar (3)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
127new FileNotFoundException(SR.IO_FileNotFound);
System\Formats\Tar\TarFile.cs (2)
266throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, sourceFileName)); 313return Task.FromException(new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, sourceFileName)));
System.IO.Compression.ZipFile (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
127new FileNotFoundException(SR.IO_FileNotFound);
System.IO.FileSystem.DriveInfo (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
127new FileNotFoundException(SR.IO_FileNotFound);
System.IO.FileSystem.Watcher (1)
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\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
127new FileNotFoundException(SR.IO_FileNotFound);
System.IO.Pipes (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
127new FileNotFoundException(SR.IO_FileNotFound);
System.IO.Ports (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
127new FileNotFoundException(SR.IO_FileNotFound);
System.Private.CoreLib (5)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
127new FileNotFoundException(SR.IO_FileNotFound);
src\System\Reflection\RuntimeAssembly.cs (3)
436throw new FileNotFoundException(SR.IO_NoFileTableInInMemoryAssemblies); 454throw new FileNotFoundException(SR.IO_NoFileTableInInMemoryAssemblies); 675throw new FileNotFoundException(SR.Format(culture, SR.IO_FileNotFound_FileName, an.Name));
src\System\Reflection\TypeNameResolver.CoreCLR.cs (1)
177throw new FileNotFoundException(SR.Format(SR.FileNotFound_ResolveAssembly, assemblyName));
System.Private.Windows.Core (1)
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (1)
44return new FileNotFoundException(SR.GdiplusFileNotFound);
System.Reflection.MetadataLoadContext (3)
System\Reflection\MetadataLoadContext.CoreAssembly.cs (1)
46e = 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.Windows.Forms.IntegrationTests.Common (1)
TestHelpers.cs (1)
187throw new FileNotFoundException("global.json does not exist");
WinShimmer (1)
Program.cs (1)
33throw new FileNotFoundException($"The executable {exePath} was not found.");