63 instantiations of DirectoryNotFoundException
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
260throw new DirectoryNotFoundException($"Working directory '{WorkingDirectory}' does not exist.");
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
260throw new DirectoryNotFoundException($"Working directory '{WorkingDirectory}' does not exist.");
BuildValidator (1)
IldasmUtilities.cs (1)
27var directory = Path.GetDirectoryName(typeof(IldasmUtilities).GetTypeInfo().Assembly.Location) ?? throw new DirectoryNotFoundException();
dotnet-svcutil-lib (1)
Metadata\MetadataFileNameManager.cs (1)
248throw new DirectoryNotFoundException(string.Format(CultureInfo.CurrentCulture, MetadataResources.ErrDirectoryNotFoundFormat, dirInfo.FullName));
IIS.ShadowCopy.Tests (1)
ShadowCopyTests.cs (1)
401throw new DirectoryNotFoundException(
Microsoft.AspNetCore.Http (1)
src\Http\WebUtilities\src\AspNetCoreTempDirectory.cs (1)
24throw new DirectoryNotFoundException(temp);
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Common\DeploymentParameters.cs (1)
59throw new DirectoryNotFoundException($"Application path {applicationPath} does not exist.");
Deployers\ApplicationDeployer.cs (1)
48throw new DirectoryNotFoundException($"Application path {DeploymentParameters.ApplicationPath} does not exist.");
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
275throw new DirectoryNotFoundException(
Microsoft.AspNetCore.WebUtilities (1)
AspNetCoreTempDirectory.cs (1)
24throw new DirectoryNotFoundException(temp);
Microsoft.Build.Tasks.Core (1)
Exec.cs (1)
533throw new DirectoryNotFoundException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Exec.InvalidWorkingDirectory", _workingDirectory));
Microsoft.Build.Tasks.UnitTests (1)
Touch_Tests.cs (1)
86throw new DirectoryNotFoundException();
Microsoft.DotNet.Helix.JobSender (1)
Payloads\DirectoryPayload.cs (1)
24throw new DirectoryNotFoundException($"The directory '{directory}' was not found.");
Microsoft.Extensions.Configuration.KeyPerFile (2)
KeyPerFileConfigurationProvider.cs (2)
71throw new DirectoryNotFoundException("A non-null file provider for the directory is required when this source is not optional."); 83throw new DirectoryNotFoundException("The root directory for the FileProvider doesn't exist and is not optional.");
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFileProvider.cs (1)
66throw new DirectoryNotFoundException(Root);
Microsoft.ML.SamplesUtils (1)
SamplesDatasetUtils.cs (1)
34throw new DirectoryNotFoundException("Could not find the ML.NET repository");
Microsoft.VisualBasic.Forms.Tests (1)
System\Windows\Forms\ApplicationServicesExceptionsTests.vb (1)
16Private ReadOnly _innerException As New DirectoryNotFoundException
PresentationCore (1)
MS\Internal\FontCache\FontCacheUtil.cs (1)
751throw new DirectoryNotFoundException(SR.Format(SR.DirectoryNotFoundExceptionWithFileName, fileName));
System.Console (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
133new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path)) : 134new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
System.Formats.Tar (10)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
133new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path)) : 134new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
System\Formats\Tar\TarFile.cs (8)
43throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName)); 82return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName))); 112throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName)); 148return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName))); 183throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName)); 228return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName))); 271throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName)); 318return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName)));
System.IO.Compression.ZipFile (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
133new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path)) : 134new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
System.IO.FileSystem.DriveInfo (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
133new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path)) : 134new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
System.IO.FileSystem.Watcher (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
133new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path)) : 134new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
363throw new DirectoryNotFoundException(SR.Format(SR.PathNotFound_Path, sourceDirectoryName));
System.IO.MemoryMappedFiles (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
133new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path)) : 134new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
System.IO.Pipes (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
133new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path)) : 134new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
System.IO.Ports (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
133new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path)) : 134new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
280throw new DirectoryNotFoundException(fnfe.Message);
System.Private.CoreLib (8)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
133new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path)) : 134new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName);
src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
37return new DirectoryNotFoundException(
src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (1)
164throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, FullName));
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (2)
421throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceFullPath)); 457throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceFullPath));
src\libraries\System.Private.CoreLib\src\System\Threading\EventWaitHandle.cs (1)
123throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, name));
src\libraries\System.Private.CoreLib\src\System\Threading\Mutex.cs (1)
144throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, name));
System.Windows.Forms.IntegrationTests.Common (3)
TestHelpers.cs (3)
109throw new DirectoryNotFoundException($"{dotnetPath} directory cannot be found."); 210throw new DirectoryNotFoundException($"dotnet sdk {dotnetVersion} is not installed globally"); 257throw new DirectoryNotFoundException($"No {seek} folder was found among siblings of subfolders of {codeBasePath}.");
Templates.Blazor.Tests (2)
BlazorTemplateTest.cs (1)
64throw new DirectoryNotFoundException($"Directory {subProjectDirectory} was not found.");
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
91throw new DirectoryNotFoundException($"Directory {subProjectDirectory} was not found.");
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
91throw new DirectoryNotFoundException($"Directory {subProjectDirectory} was not found.");
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
91throw new DirectoryNotFoundException($"Directory {subProjectDirectory} was not found.");
Templates.Mvc.Tests (1)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
91throw new DirectoryNotFoundException($"Directory {subProjectDirectory} was not found.");
Templates.Tests (1)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
91throw new DirectoryNotFoundException($"Directory {subProjectDirectory} was not found.");
WinShimmer (1)
Program.cs (1)
37throw new DirectoryNotFoundException($"The specified output directory \"{outputDirectory}\" does not exist");
137 references to DirectoryNotFoundException
Aspire.Dashboard.Tests (1)
Integration\StartupTests.cs (1)
235var ex = await Assert.ThrowsAsync<DirectoryNotFoundException>(async () =>
Microsoft.AspNetCore.Http.Results.Tests (1)
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (1)
405await Assert.ThrowsAsync<DirectoryNotFoundException>(
Microsoft.AspNetCore.Mvc.Core.Test (1)
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (1)
405await Assert.ThrowsAsync<DirectoryNotFoundException>(
Microsoft.AspNetCore.StaticFiles (2)
HtmlDirectoryFormatter.cs (2)
147catch (DirectoryNotFoundException) 184catch (DirectoryNotFoundException)
Microsoft.Build (5)
BackEnd\Node\OutOfProcNode.cs (1)
716catch (DirectoryNotFoundException)
BackEnd\Shared\BuildRequestConfiguration.cs (3)
450catch (DirectoryNotFoundException) 715catch (Exception e) when (e is DirectoryNotFoundException or UnauthorizedAccessException) 754catch (Exception e) when (e is DirectoryNotFoundException or UnauthorizedAccessException)
Logging\ProfilerLogger.cs (1)
301DirectoryNotFoundException or
Microsoft.Build.Tasks.Core (1)
ManifestUtil\XmlUtil.cs (1)
181catch (DirectoryNotFoundException)
Microsoft.Build.UnitTests.Shared (2)
TestEnvironment.cs (2)
483catch (DirectoryNotFoundException) 493catch (DirectoryNotFoundException)
Microsoft.CodeAnalysis (3)
CommandLine\CommonCompiler.cs (1)
509if (e is FileNotFoundException || e is DirectoryNotFoundException)
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
103catch (DirectoryNotFoundException)
FileSystem\ICommonCompilerFileSystem.cs (1)
38catch (DirectoryNotFoundException e)
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\DebuggingSession.cs (1)
289catch (Exception e) when (e is FileNotFoundException or DirectoryNotFoundException)
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (1)
91catch (Exception e) when (e is FileNotFoundException or DirectoryNotFoundException)
Microsoft.CodeAnalysis.Scripting (3)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (2)
430catch (DirectoryNotFoundException) 620catch (Exception e) when (fileMayNotExist && e is FileNotFoundException or DirectoryNotFoundException)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (1)
152if (e is FileNotFoundException || e is DirectoryNotFoundException)
Microsoft.CodeAnalysis.Test.Utilities (1)
TempFiles\TempFile.cs (1)
49catch (DirectoryNotFoundException)
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
103catch (DirectoryNotFoundException)
Microsoft.DotNet.Arcade.Sdk (1)
src\DownloadFile.cs (1)
210e is IOException && !(e is DirectoryNotFoundException || e is PathTooLongException) ||
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
118/// <exception cref="DirectoryNotFoundException">Optional is <c>false</c> on the source and a
Microsoft.Extensions.FileProviders.Physical (3)
PhysicalDirectoryInfo.cs (1)
100catch (Exception ex) when (ex is DirectoryNotFoundException or IOException)
PhysicalFileProvider.cs (1)
332catch (DirectoryNotFoundException)
PhysicalFilesWatcher.cs (1)
301ex is DirectoryNotFoundException ||
Microsoft.Extensions.FileSystemGlobbing (1)
Abstractions\DirectoryInfoWrapper.cs (1)
43catch (DirectoryNotFoundException)
Microsoft.VisualBasic.Core (13)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
347ByVal ResourceID As String, ByVal ParamArray PlaceHolders() As String) As IO.DirectoryNotFoundException
Microsoft\VisualBasic\CompilerServices\VB6InputFile.vb (1)
40Catch ex As DirectoryNotFoundException
Microsoft\VisualBasic\CompilerServices\VB6OutputFile.vb (1)
54Catch ex As DirectoryNotFoundException
Microsoft\VisualBasic\CompilerServices\VB6RandomFile.vb (1)
38Catch ex As DirectoryNotFoundException
Microsoft\VisualBasic\FileIO\FileSystem.vb (5)
886''' <exception cref="IO.DirectoryNotFoundException">Source directory does not exist as a directory.</exception> 1024TypeOf ex Is IO.DirectoryNotFoundException OrElse TypeOf ex Is NotSupportedException OrElse 1065TypeOf ex Is SecurityException OrElse TypeOf ex Is IO.DirectoryNotFoundException) Then 1331TypeOf ex Is ArgumentNullException Or TypeOf ex Is IO.DirectoryNotFoundException Or 1513TypeOf ex Is IO.DirectoryNotFoundException OrElse
Microsoft\VisualBasic\FileIO\SpecialDirectories.vb (3)
24''' <exception cref="IO.DirectoryNotFoundException">If the system does not have the notion of My Documents directory.</exception> 36''' <exception cref="IO.DirectoryNotFoundException">If the system does not have the notion of My Music directory.</exception> 48''' <exception cref="IO.DirectoryNotFoundException">If the system does not have the notion of My Pictures directory.</exception>
Microsoft\VisualBasic\FileSystem.vb (1)
224Catch e1 As DirectoryNotFoundException
Microsoft.VisualBasic.Forms (9)
Microsoft\VisualBasic\Helpers\FileSystemUtils.vb (1)
55TypeOf ex Is DirectoryNotFoundException OrElse
Microsoft\VisualBasic\MyServices\SpecialDirectoriesProxy.vb (8)
29''' <exception cref="DirectoryNotFoundException"> 52''' <exception cref="DirectoryNotFoundException"> 70''' <exception cref="DirectoryNotFoundException"> 88''' <exception cref="DirectoryNotFoundException"> 106''' <exception cref="DirectoryNotFoundException"> 124''' <exception cref="DirectoryNotFoundException"> 142''' <exception cref="DirectoryNotFoundException"> 160''' <exception cref="DirectoryNotFoundException">
Microsoft.VisualBasic.Forms.Tests (2)
System\Windows\Forms\ApplicationServicesExceptionsTests.vb (2)
33ex.InnerException.Should.BeOfType(Of DirectoryNotFoundException)() 50ex.InnerException.Should.BeOfType(Of DirectoryNotFoundException)()
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\MyServices\FileSystemProxyTests.cs (1)
641Assert.Throws<DirectoryNotFoundException>(() => _fileSystem.RenameDirectory(Path.Join(TestDirectory, "DoesNotExistDirectory"), "NewDirectory"));
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
314[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.DirectoryNotFoundException))]
netstandard (1)
netstandard.cs (1)
902[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.DirectoryNotFoundException))]
PresentationUI (1)
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (1)
272(exception is System.IO.DirectoryNotFoundException))
System.CodeDom (1)
src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
145if (retryCount == 0 || ex is DirectoryNotFoundException)
System.ComponentModel.Composition (9)
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (9)
61/// <exception cref="DirectoryNotFoundException"> 100/// <exception cref="DirectoryNotFoundException"> 138/// <exception cref="DirectoryNotFoundException"> 181/// <exception cref="DirectoryNotFoundException"> 219/// <exception cref="DirectoryNotFoundException"> 263/// <exception cref="DirectoryNotFoundException"> 312/// <exception cref="DirectoryNotFoundException"> 366/// <exception cref="DirectoryNotFoundException"> 563/// <exception cref="DirectoryNotFoundException">
System.Configuration.ConfigurationManager (1)
src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
145if (retryCount == 0 || ex is DirectoryNotFoundException)
System.Diagnostics.Process (1)
System\Diagnostics\Process.Linux.cs (1)
174catch (DirectoryNotFoundException) // Occurs when the process is deleted between the Exists check and the GetFiles call.
System.Drawing.Common.Tests (1)
System\Drawing\ImageTests.cs (1)
667AssertExtensions.Throws<DirectoryNotFoundException>(() => bitmap.Save(badTarget), $"The directory NoSuchDirectory of the filename {badTarget} does not exist.");
System.Formats.Tar (8)
System\Formats\Tar\TarFile.cs (8)
29/// <exception cref="DirectoryNotFoundException">The <paramref name="sourceDirectoryName"/> directory path was not found.</exception> 64/// <exception cref="DirectoryNotFoundException">The <paramref name="sourceDirectoryName"/> directory path was not found.</exception> 99/// <exception cref="DirectoryNotFoundException">The <paramref name="sourceDirectoryName"/> directory path was not found.</exception> 131/// <exception cref="DirectoryNotFoundException">The <paramref name="sourceDirectoryName"/> directory path was not found.</exception> 163/// <exception cref="DirectoryNotFoundException">The <paramref name="destinationDirectoryName"/> directory path was not found.</exception> 204/// <exception cref="DirectoryNotFoundException">The <paramref name="destinationDirectoryName"/> directory path was not found.</exception> 247/// <exception cref="DirectoryNotFoundException">The <paramref name="destinationDirectoryName"/> directory path was not found.</exception> 290/// <exception cref="DirectoryNotFoundException">The <paramref name="destinationDirectoryName"/> directory path was not found.</exception>
System.IO.Compression.ZipFile (46)
System\IO\Compression\ZipFile.Create.Async.cs (9)
23/// <exception cref="DirectoryNotFoundException">The specified archiveFileName is invalid, (for example, it is on an unmapped drive).</exception> 47/// <exception cref="DirectoryNotFoundException">The specified archiveFileName is invalid, (for example, it is on an unmapped drive).</exception> 86/// <exception cref="DirectoryNotFoundException">The specified archiveFileName is invalid, (for example, it is on an unmapped drive).</exception> 201/// <exception cref="DirectoryNotFoundException">The path specified in <code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> 245/// <exception cref="DirectoryNotFoundException">The path specified in <code>sourceDirectoryName</code> or 293/// <exception cref="DirectoryNotFoundException">The path specified in <code>sourceDirectoryName</code> or 356/// <exception cref="DirectoryNotFoundException"><paramref name="sourceDirectoryName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception> 384/// <exception cref="DirectoryNotFoundException"><paramref name="sourceDirectoryName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception> 414/// <exception cref="DirectoryNotFoundException"><paramref name="sourceDirectoryName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception>
System\IO\Compression\ZipFile.Create.cs (9)
21/// <exception cref="DirectoryNotFoundException">The specified archiveFileName is invalid, (for example, it is on an unmapped drive).</exception> 43/// <exception cref="DirectoryNotFoundException">The specified archiveFileName is invalid, (for example, it is on an unmapped drive).</exception> 80/// <exception cref="DirectoryNotFoundException">The specified archiveFileName is invalid, (for example, it is on an unmapped drive).</exception> 191/// <exception cref="DirectoryNotFoundException">The path specified in <code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> 233/// <exception cref="DirectoryNotFoundException">The path specified in <code>sourceDirectoryName</code> or 279/// <exception cref="DirectoryNotFoundException">The path specified in <code>sourceDirectoryName</code> or 339/// <exception cref="DirectoryNotFoundException"><paramref name="sourceDirectoryName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception> 365/// <exception cref="DirectoryNotFoundException"><paramref name="sourceDirectoryName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception> 393/// <exception cref="DirectoryNotFoundException"><paramref name="sourceDirectoryName" /> is invalid or does not exist (for example, it is on an unmapped drive).</exception>
System\IO\Compression\ZipFile.Extract.Async.cs (8)
28/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 62/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 97/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 153/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 217/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 248/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 287/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 327/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
System\IO\Compression\ZipFile.Extract.cs (8)
26/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 58/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 91/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 145/// <exception cref="DirectoryNotFoundException">The path specified by sourceArchive or destinationDirectoryName is invalid, 203/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 232/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 269/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 307/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.Async.cs (2)
31/// <exception cref="DirectoryNotFoundException">The specified sourceFileName is invalid, (for example, it is on an unmapped drive).</exception> 63/// <exception cref="DirectoryNotFoundException">The specified sourceFileName is invalid, (for example, it is on an unmapped drive).</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (2)
31/// <exception cref="DirectoryNotFoundException">The specified sourceFileName is invalid, (for example, it is on an unmapped drive).</exception> 62/// <exception cref="DirectoryNotFoundException">The specified sourceFileName is invalid, (for example, it is on an unmapped drive).</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.Async.cs (2)
24/// <exception cref="DirectoryNotFoundException">The specified path is invalid, (for example, it is on an unmapped drive).</exception> 56/// <exception cref="DirectoryNotFoundException">The specified path is invalid, (for example, it is on an unmapped drive).</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.cs (2)
22/// <exception cref="DirectoryNotFoundException">The specified path is invalid, (for example, it is on an unmapped drive).</exception> 52/// <exception cref="DirectoryNotFoundException">The specified path is invalid, (for example, it is on an unmapped drive).</exception>
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.Async.cs (2)
23/// <exception cref="DirectoryNotFoundException">The path specified in destinationFileName is invalid (for example, it is on 51/// <exception cref="DirectoryNotFoundException">The path specified in destinationFileName is invalid
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (2)
20/// <exception cref="DirectoryNotFoundException">The path specified in destinationFileName is invalid (for example, it is on 48/// <exception cref="DirectoryNotFoundException">The path specified in destinationFileName is invalid
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
459catch (DirectoryNotFoundException)
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
361catch (DirectoryNotFoundException)
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (7)
647/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 680/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 751/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 777/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 801/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 958/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception> 991/// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
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\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (1)
125catch (DirectoryNotFoundException ex)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
293[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.DirectoryNotFoundException))]
System.Windows.Forms.IntegrationTests.Common (1)
TestHelpers.cs (1)
155catch (DirectoryNotFoundException)