102 references to FileNotFoundException
aspire (8)
NuGet\NuGetPackageAssetResolver.cs (1)
54throw new FileNotFoundException($"Assets file not found: {assetsPath}", assetsPath);
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
Templating\TemplateEngineHost.cs (1)
88IsGitMetadata(path) ? throw new FileNotFoundException(null, path) : path;
Templating\TemplateHostConfiguration.cs (2)
52throw new FileNotFoundException(null, template.MountPointUri); 58?? throw new FileNotFoundException(null, template.HostConfigPlace);
Templating\TemplatePromptDefaults.cs (3)
35?? throw new FileNotFoundException(null, template.ConfigPlace); 39throw new FileNotFoundException(null, template.MountPointUri); 46?? throw new FileNotFoundException(null, template.ConfigPlace);
aspire-tray (5)
FolderApplication.cs (1)
137throw new FileNotFoundException("The selected application is no longer installed.", executable);
src\Aspire.Tray\Common\TrayLaunchCommand.cs (3)
25throw new FileNotFoundException("The bundle does not contain the Windows Aspire Tray executable.", executable); 29throw new FileNotFoundException("The Aspire CLI executable was not found.", options.CliPath); 92throw new FileNotFoundException("The bundle does not contain the macOS Aspire Tray app.", appPath);
TrayApplication.Actions.cs (1)
140throw new FileNotFoundException("The selected AppHost source file no longer exists.", path);
Aspire.Cli.EndToEnd.Tests (13)
ChannelUpdateWorkflowTests.cs (3)
499throw new FileNotFoundException($"Expected aspire.config.json at: {aspireConfigPath}", aspireConfigPath); 513throw new FileNotFoundException($"Expected aspire.config.json at: {aspireConfigPath}", aspireConfigPath); 537throw new FileNotFoundException($"Expected aspire.config.json at: {aspireConfigPath}", aspireConfigPath);
EmulatedLocalReleaseBuildTests.cs (4)
618throw new FileNotFoundException($"Expected AppHost project to exist: {csprojPath}", csprojPath); 642throw new FileNotFoundException($"Expected aspire.config.json to exist: {configPath}", configPath); 662throw new FileNotFoundException($"Expected aspire.config.json to exist: {configPath}", configPath); 691throw new FileNotFoundException($"Expected aspire.config.json to exist: {configPath}", configPath);
EmulatedReleasedBuildTests.cs (1)
231throw new FileNotFoundException($"Expected aspire.config.json to exist: {configPath}", configPath);
EmulatedStagingBuildTests.cs (2)
318throw new FileNotFoundException($"Expected aspire.config.json to exist: {configPath}", configPath); 345throw new FileNotFoundException($"Expected aspire.config.json to exist: {configPath}", configPath);
SmokeTests.cs (2)
253throw new FileNotFoundException($"Expected TypeScript AppHost file to exist: {appHostPath}", appHostPath); 347throw new FileNotFoundException($"Expected Aspire config file to exist: {configPath}", configPath);
TypeScriptStarterSmokeTests.cs (1)
103throw new FileNotFoundException($"Expected aspire.config.json to exist at {configPath}.", configPath);
Aspire.Hosting (4)
ApplicationModel\AspireStoreExtensions.cs (1)
28throw new FileNotFoundException("The source file does not exist.", sourceFilename);
Dcp\DcpDependencyCheck.cs (1)
88throw new FileNotFoundException($"The Aspire orchestration component is not installed at \"{dcpPath}\". The application cannot be run without it.", dcpPath);
Dcp\DcpHost.cs (1)
321throw new FileNotFoundException($"The Developer Control Plane is not installed at \"{dcpExePath}\". The application cannot be run without it.", dcpExePath);
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.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.Dotnet (2)
MsTestHostingExtensions.cs (1)
76throw new FileNotFoundException("The MSTest project does not exist.", projectPath);
MsTestTrxReport.cs (1)
39throw new FileNotFoundException(
Aspire.Hosting.Kubernetes (1)
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
Aspire.Hosting.RemoteHost (2)
Language\IntegrationHostConfiguration.cs (1)
69throw new FileNotFoundException(
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
Aspire.Playground.Tests (1)
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
Aspire.RuntimeIdentifier.Tool (1)
Program.cs (1)
51throw new FileNotFoundException("File {0} does not exist. Please ensure the runtime graph path exists.", rgp);
Aspire.TestUtilities (1)
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
Aspire.Tray.Tests (5)
src\Aspire.Tray\Common\TrayLaunchCommand.cs (3)
25throw new FileNotFoundException("The bundle does not contain the Windows Aspire Tray executable.", executable); 29throw new FileNotFoundException("The Aspire CLI executable was not found.", options.CliPath); 92throw new FileNotFoundException("The bundle does not contain the macOS Aspire Tray app.", appPath);
src\Aspire.Tray\Linux\LinuxTrayApplication.cs (1)
78throw new FileNotFoundException("The tray icon is missing.", icon);
src\Aspire.Tray\Linux\LinuxTrayRuntime.cs (1)
130throw new FileNotFoundException("The Linux tray payload is missing.", executable);
Infrastructure.Tests (1)
src\Shared\PathLookupHelper.cs (1)
45?? throw new FileNotFoundException($"Executable '{executablePath}' was not found on PATH.", executablePath);
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\E2EManifest.cs (1)
26throw 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.Build.Framework (1)
Loader\TypeLoader.cs (1)
275throw new FileNotFoundException(null, assemblyLoadInfo.AssemblyLocation);
Microsoft.Build.Tasks.Core (2)
ManifestUtil\Manifest.cs (1)
496throw new FileNotFoundException(null, f.SourcePath);
ManifestUtil\SecurityUtil.cs (1)
681throw new FileNotFoundException(String.Format(CultureInfo.InvariantCulture, resources.GetString("SecurityUtil.SignTargetNotFound"), path), path);
Microsoft.DotNet.ApiSymbolExtensions (1)
AssemblySymbolLoader.cs (1)
307throw new FileNotFoundException(string.Format(Resources.ShouldProvideValidAssemblyName, directory), nameof(searchPaths));
Microsoft.DotNet.Build.Tasks.Workloads (2)
Wix\WixToolTaskBase.cs (2)
47throw new FileNotFoundException("The specified tool executable was not found.", toolPath); 53throw new FileNotFoundException("The specified tool executable was not found.", toolFullPath);
Microsoft.DotNet.ILAssembler (1)
Actions\GrammarActions.BuildImage.cs (1)
32throw new FileNotFoundException($"Win32 resource file not found: {resourceFile}", resourceFile);
Microsoft.DotNet.XliffTasks (1)
Tasks\XlfTask.cs (1)
98throw new FileNotFoundException($"File not found: {path}", path);
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.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.TemplateEngine.Edge (3)
Mount\Archive\ZipFileFile.cs (3)
37throw new FileNotFoundException("File not found", FullPath); 41throw new FileNotFoundException("File not found", FullPath); 46throw new FileNotFoundException("File not found", FullPath);
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.Extensions.BlameDataCollector (1)
WindowsHangDumper.cs (1)
149throw new FileNotFoundException("Could not find DumpMinitool", dumpMinitoolPath);
Microsoft.TestPlatform.PlatformAbstractions (1)
common\System\ProcessHelper.cs (1)
53throw 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.Forms (1)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
78Return New IO.FileNotFoundException(GetResourceString(resourceKey, placeHolders), fileName)
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
DataCollector\TransferInformation\FileTransferInformation.cs (1)
63throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.Common_FileNotExist, [path]), path);
NuGet.PackageManagement (1)
Utility\PackagesConfigLockFileUtility.cs (1)
304throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, Strings.Error_FileDoesNotExist, pcFile), pcFile);
PresentationCore (2)
MS\Internal\FontCache\FontCacheUtil.cs (1)
748throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, fileName), fileName);
System\Windows\Media\ColorContext.cs (1)
541throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, profileUri.AbsolutePath), profileUri.AbsolutePath);
System.Console (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
142new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.Unix.cs (1)
22throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, _fileName), _fileName);
System.Formats.Tar (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
142new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
System.IO.FileSystem.AccessControl (1)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
34return new FileNotFoundException(
System.IO.FileSystem.DriveInfo (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
142new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
System.IO.FileSystem.Watcher (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
142new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
System.IO.MemoryMappedFiles (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
142new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
System.IO.Pipes (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
142new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
System.IO.Ports (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
142new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
System.Private.CoreLib (6)
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 (1)
142new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) :
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);
System.Private.Xml (1)
System\Xml\Serialization\Compilation.cs (1)
212throw new FileNotFoundException(null, serializerName);
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);