22 instantiations of PathTooLongException
Microsoft.Build.Tasks.UnitTests (1)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (1)
632throw new PathTooLongException();
MSBuildTaskHost (1)
FileUtilities.cs (1)
512throw new PathTooLongException(message);
PresentationCore (1)
MS\Internal\FontCache\FontCacheUtil.cs (1)
757throw new PathTooLongException(SR.Format(SR.PathTooLongExceptionWithFileName, fileName));
System.Console (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
146new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 147new PathTooLongException(SR.IO_PathTooLong);
System.Formats.Tar (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
146new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 147new PathTooLongException(SR.IO_PathTooLong);
System.IO.Compression.ZipFile (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
146new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 147new PathTooLongException(SR.IO_PathTooLong);
System.IO.FileSystem.DriveInfo (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
146new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 147new PathTooLongException(SR.IO_PathTooLong);
System.IO.FileSystem.Watcher (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
146new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 147new PathTooLongException(SR.IO_PathTooLong);
System.IO.MemoryMappedFiles (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
146new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 147new PathTooLongException(SR.IO_PathTooLong);
System.IO.Pipes (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
146new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 147new PathTooLongException(SR.IO_PathTooLong);
System.IO.Ports (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
146new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 147new PathTooLongException(SR.IO_PathTooLong);
System.Private.CoreLib (3)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
146new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 147new PathTooLongException(SR.IO_PathTooLong);
src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
47return new PathTooLongException(
119 references to PathTooLongException
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
79catch (PathTooLongException ptle)
dotnet-svcutil-lib (1)
OutputPathHelper.cs (1)
90catch (PathTooLongException ptle)
Microsoft.Build (3)
BackEnd\Client\MSBuildClient.cs (2)
206catch (IOException ex) when (ex is not PathTooLongException) 460catch (IOException ex) when (ex is not PathTooLongException)
FileUtilities.cs (1)
202catch (PathTooLongException)
Microsoft.Build.Engine.OM.UnitTests (1)
FileUtilities.cs (1)
202catch (PathTooLongException)
Microsoft.Build.Engine.UnitTests (1)
FileUtilities_Tests.cs (1)
424Assert.Throws<PathTooLongException>(() =>
Microsoft.Build.Tasks.Core (6)
AssemblyDependency\ReferenceTable.cs (1)
1771catch (PathTooLongException e)
Copy.cs (2)
932catch (PathTooLongException e) 973case PathTooLongException:
FileUtilities.cs (1)
202catch (PathTooLongException)
GenerateResource.cs (2)
2841catch (PathTooLongException) 2861catch (PathTooLongException)
Microsoft.Build.Utilities.Core (1)
FileUtilities.cs (1)
202catch (PathTooLongException)
Microsoft.Build.Utilities.UnitTests (1)
ToolLocationHelper_Tests.cs (1)
3071Should.Throw<PathTooLongException>(() =>
Microsoft.CodeAnalysis (1)
FileSystem\PathUtilities.cs (1)
776ex is PathTooLongException || // The specified path, file name, or both exceed the system-defined maximum length.
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
776ex is PathTooLongException || // The specified path, file name, or both exceed the system-defined maximum length.
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
776ex is PathTooLongException || // The specified path, file name, or both exceed the system-defined maximum length.
Microsoft.CodeAnalysis.Test.Utilities (1)
TempFiles\TempFile.cs (1)
45catch (PathTooLongException)
Microsoft.CodeAnalysis.UnitTests (1)
MetadataReferences\ModuleMetadataTests.cs (1)
125Assert.Throws<PathTooLongException>(() => ModuleMetadata.CreateFromFile(systemDrive + @":\" + new string('x', 1000)));
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
776ex is PathTooLongException || // The specified path, file name, or both exceed the system-defined maximum length.
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
776ex is PathTooLongException || // The specified path, file name, or both exceed the system-defined maximum length.
Microsoft.DotNet.Arcade.Sdk (1)
src\DownloadFile.cs (1)
210e is IOException && !(e is DirectoryNotFoundException || e is PathTooLongException) ||
Microsoft.Extensions.FileProviders.Embedded (2)
EmbeddedFileProvider.cs (1)
65catch (PathTooLongException)
ManifestEmbeddedFileProvider.cs (1)
137catch (PathTooLongException)
Microsoft.ML.Core (1)
Utilities\Stream.cs (1)
857catch (PathTooLongException exc)
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\FileIO\FileSystem.vb (2)
1511TypeOf ex Is IO.PathTooLongException OrElse 1519TypeOf ex Is IO.PathTooLongException OrElse
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\Helpers\FileSystemUtils.vb (2)
53TypeOf ex Is PathTooLongException OrElse 61TypeOf ex Is PathTooLongException OrElse
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\FileChangeTracker.cs (1)
146if (e is not PathTooLongException)
MSBuild (2)
FileUtilities.cs (1)
202catch (PathTooLongException)
XMake.cs (1)
3367catch (PathTooLongException ex)
MSBuildTaskHost (1)
FileUtilities.cs (1)
202catch (PathTooLongException)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
339[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.PathTooLongException))]
netstandard (1)
netstandard.cs (1)
949[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.PathTooLongException))]
PresentationFramework (1)
Microsoft\Win32\FileDialog.cs (1)
462catch (PathTooLongException)
PresentationUI (1)
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (1)
268(exception is System.IO.PathTooLongException) ||
System.ComponentModel.Composition (12)
System\ComponentModel\Composition\Hosting\AssemblyCatalog.cs (4)
48/// <exception cref="PathTooLongException"> 104/// <exception cref="PathTooLongException"> 161/// <exception cref="PathTooLongException"> 225/// <exception cref="PathTooLongException">
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (8)
64/// <exception cref="PathTooLongException"> 103/// <exception cref="PathTooLongException"> 141/// <exception cref="PathTooLongException"> 184/// <exception cref="PathTooLongException"> 222/// <exception cref="PathTooLongException"> 266/// <exception cref="PathTooLongException"> 315/// <exception cref="PathTooLongException"> 369/// <exception cref="PathTooLongException">
System.Drawing.Common.Tests (11)
System\Drawing\ImageTests.cs (2)
525Assert.Throws<PathTooLongException>(() => Image.FromFile(fileName)); 526Assert.Throws<PathTooLongException>(() => Image.FromFile(fileName,
System\Drawing\Imaging\ImageAttributesTests.cs (2)
1107Assert.Throws<PathTooLongException>(() => imageAttr.SetOutputChannelColorProfile(fileNameTooLong)); 1108Assert.Throws<PathTooLongException>(() => imageAttr.SetOutputChannelColorProfile(fileNameTooLong, ColorAdjustType.Default));
System\Drawing\Imaging\MetafileTests.cs (7)
439Assert.Throws<PathTooLongException>(() => new Metafile(fileName, referenceHdc)); 440Assert.Throws<PathTooLongException>(() => new Metafile(fileName, referenceHdc, EmfType.EmfOnly)); 441Assert.Throws<PathTooLongException>(() => new Metafile(fileName, referenceHdc, EmfType.EmfOnly, "description")); 714Assert.Throws<PathTooLongException>(() => new Metafile(fileName, referenceHdc, _rectangleF)); 715Assert.Throws<PathTooLongException>(() => 717Assert.Throws<PathTooLongException>(() => 719Assert.Throws<PathTooLongException>(() =>
System.IO.Compression.ZipFile (46)
System\IO\Compression\ZipFile.Create.Async.cs (9)
20/// <exception cref="PathTooLongException">The specified archiveFileName exceeds the system-defined maximum length. 44/// <exception cref="PathTooLongException">The specified archiveFileName exceeds the system-defined maximum length. 83/// <exception cref="PathTooLongException">The specified archiveFileName exceeds the system-defined maximum length. 197/// <exception cref="PathTooLongException">In <code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code>, the specified 241/// <exception cref="PathTooLongException">In <code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code>, the 289/// <exception cref="PathTooLongException">In <code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code>, the 355/// <exception cref="PathTooLongException">In <paramref name="sourceDirectoryName" /> the specified path, file name, or both exceed the system-defined maximum length.</exception> 383/// <exception cref="PathTooLongException">In <paramref name="sourceDirectoryName" /> the specified path, file name, or both exceed the system-defined maximum length.</exception> 413/// <exception cref="PathTooLongException">In <paramref name="sourceDirectoryName" /> the specified path, file name, or both exceed the system-defined maximum length.</exception>
System\IO\Compression\ZipFile.Create.cs (9)
18/// <exception cref="PathTooLongException">The specified archiveFileName exceeds the system-defined maximum length. 40/// <exception cref="PathTooLongException">The specified archiveFileName exceeds the system-defined maximum length. 77/// <exception cref="PathTooLongException">The specified archiveFileName exceeds the system-defined maximum length. 187/// <exception cref="PathTooLongException">In <code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code>, the specified 229/// <exception cref="PathTooLongException">In <code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code>, the 275/// <exception cref="PathTooLongException">In <code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code>, the 338/// <exception cref="PathTooLongException">In <paramref name="sourceDirectoryName" /> the specified path, file name, or both exceed the system-defined maximum length.</exception> 364/// <exception cref="PathTooLongException">In <paramref name="sourceDirectoryName" /> the specified path, file name, or both exceed the system-defined maximum length.</exception> 392/// <exception cref="PathTooLongException">In <paramref name="sourceDirectoryName" /> the specified path, file name, or both exceed the system-defined maximum length.</exception>
System\IO\Compression\ZipFile.Extract.Async.cs (8)
25/// <exception cref="PathTooLongException">sourceArchive or destinationDirectoryName specifies a path, file name, 59/// <exception cref="PathTooLongException">sourceArchive or destinationDirectoryName specifies a path, file name, 94/// <exception cref="PathTooLongException">sourceArchive or destinationDirectoryName specifies a path, file name, 150/// <exception cref="PathTooLongException">sourceArchive or destinationDirectoryName specifies a path, file name, 216/// <exception cref="PathTooLongException">The specified path in <paramref name="destinationDirectoryName" /> exceeds the system-defined maximum length.</exception> 247/// <exception cref="PathTooLongException">The specified path in <paramref name="destinationDirectoryName" /> exceeds the system-defined maximum length.</exception> 286/// <exception cref="PathTooLongException">The specified path in <paramref name="destinationDirectoryName" /> exceeds the system-defined maximum length.</exception> 326/// <exception cref="PathTooLongException">The specified path in <paramref name="destinationDirectoryName" /> exceeds the system-defined maximum length.</exception>
System\IO\Compression\ZipFile.Extract.cs (8)
23/// <exception cref="PathTooLongException">sourceArchive or destinationDirectoryName specifies a path, file name, 55/// <exception cref="PathTooLongException">sourceArchive or destinationDirectoryName specifies a path, file name, 88/// <exception cref="PathTooLongException">sourceArchive or destinationDirectoryName specifies a path, file name, 142/// <exception cref="PathTooLongException">sourceArchive or destinationDirectoryName specifies a path, file name, 202/// <exception cref="PathTooLongException">The specified path in <paramref name="destinationDirectoryName" /> exceeds the system-defined maximum length.</exception> 231/// <exception cref="PathTooLongException">The specified path in <paramref name="destinationDirectoryName" /> exceeds the system-defined maximum length.</exception> 268/// <exception cref="PathTooLongException">The specified path in <paramref name="destinationDirectoryName" /> exceeds the system-defined maximum length.</exception> 306/// <exception cref="PathTooLongException">The specified path in <paramref name="destinationDirectoryName" /> exceeds the system-defined maximum length.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.Async.cs (2)
29/// <exception cref="PathTooLongException">In sourceFileName, the specified path, file name, or both exceed the system-defined maximum length. 61/// <exception cref="PathTooLongException">In sourceFileName, the specified path, file name, or both exceed the system-defined maximum length.
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (2)
29/// <exception cref="PathTooLongException">In sourceFileName, the specified path, file name, or both exceed the system-defined maximum length. 60/// <exception cref="PathTooLongException">In sourceFileName, the specified path, file name, or both exceed the system-defined maximum length.
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.Async.cs (2)
22/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length. 54/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.cs (2)
20/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length. 50/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.Async.cs (2)
21/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length. 49/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (2)
18/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length. 46/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.
System.IO.IsolatedStorage (3)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (3)
309catch (PathTooLongException) 337catch (PathTooLongException) 365catch (PathTooLongException)
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (7)
646/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception> 679/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception> 750/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception> 776/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception> 800/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception> 957/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception> 990/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception>
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
319[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.PathTooLongException))]
System.Windows.Forms (1)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
447catch (PathTooLongException)