dotnet / dotnet/dotnet-api-docs
system.io.pathtoolongexception article doesn't mention that longpathaware manifest is required, or that the long path gpo must be set
Open
area-System.IO
Pri3
untriaged
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
Going by the Blog post here, https://learn.microsoft.com/en-us/archive/blogs/jeremykuhne/net-4-6-2-and-long-paths-on-windows-10, it is inferred you need to meet all 3 criteria
Dotnet 4.6.2 or later Target (and not overriding the behavior with AppContextSwitchOverrides)
[NTFS Long Path GPO or Corresponding Registry set](https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry)
`true` in the app.manifest
But this is missing on https://learn.microsoft.com/en-us/dotnet/api/system.io.pathtoolongexception?view=net-8.0
Contributor guide
Assessment
This issue has not been assessed yet.