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

Don't blank out SpecialFolders on Android if they don't already exist #58064

Merged
merged 1 commit into from
Aug 30, 2021

Conversation

directhex
Copy link
Member

Fixes: #35490

Hopefully, anyway. I couldn't get local testing to run on an Android emulator at all

@dotnet-issue-labeler
Copy link

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

This should give the same output as legacy Xamarin. If it doesn't, I messed up
@directhex directhex merged commit 0ab41f6 into dotnet:main Aug 30, 2021
@directhex
Copy link
Member Author

/backport to release/6.0

@github-actions
Copy link
Contributor

Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1182508214

{
private static Dictionary<SpecialFolder, string>? s_specialFolders;

private static string GetFolderPathCore(SpecialFolder folder, SpecialFolderOption option)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the code should handle SpecialFolderOption.Create

@ghost ghost locked as resolved and limited conversation to collaborators Sep 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[mono] Implement Environment.GetFolderPath for Android
5 participants