Skip to content

system.io.pathtoolongexception article doesn't mention that longpathaware manifest is required, or that the long path gpo must be set #10099

@Squall-Leonhart

Description

@Squall-Leonhart

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
<longPathAware xmlns="https://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware> in the app.manifest

But this is missing on https://learn.microsoft.com/en-us/dotnet/api/system.io.pathtoolongexception?view=net-8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityarea-System.IOuntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions