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
#10,099 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.