Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
krwq opened this issue Sep 6, 2021 · 1 comment
Open

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

krwq opened this issue Sep 6, 2021 · 1 comment

Comments

@krwq
Copy link
Member

krwq commented Sep 6, 2021

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

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants