Skip to content

Consider stripping \\?\ from AppDomain.CurrentDomain.BaseDirectory #58714

@krwq

Description

@krwq

Currently when running app from the long path you need to prefix the path with \\?\ which is causing that AppDomain.CurrentDomain.BaseDirectory also starts with that. Some apps might pass the directory into component which doesn't expect it (in .NET Framework BaseDirectory could be an URI so some apps could have passed it into Uri which would throw if it encounters anything starting with \\?\).

See #58627 (comment) and #58712 for more context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions