Skip to content

[BUG]FolderPicker.PickAsync fails on Microsoft.Maui.Controls Version="10.0.40" #3094

Closed as duplicate

Description

@ManyWork

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

In an environment with Microsoft.Maui.Controls Version="10.0.40", FolderPicker.PickAsync() does not work and the folder selection screen is not displayed.
This seems like an issue with Microsoft.Maui.Controls, but I'd like to report it here.

Expected Behavior

CommunityToolkit.Maui 14.0.0 depends on Microsoft.Maui.Controls (>=10.0.30), so I would like the folder picker to appear in 10.0.40 as well.

Steps To Reproduce

I have a project that already uses FolderPicker.PickAsync().
After updating from Microsoft.Maui.Controls Version="10.0.31" to Microsoft.Maui.Controls Version="10.0.40" using NuGet, FolderPicker.PickAsync() no longer displays the folder selection screen and immediately returns null.

●Button click

private async void BackupDatabaseBtn_Clicked(object sender, EventArgs e)
{
    Console.WriteLine(Utility.DownloadPath);

    // -- Utility.DownloadPath(android)--
    // Microsoft.Maui.Controls 10.0.40 "/storage/emulated/0/Download"
    // Microsoft.Maui.Controls 10.0.31 "/storage/emulated/0/Download"

    var result = await FolderPicker.PickAsync(Utility.DownloadPath);

    // result
    // Microsoft.Maui.Controls 10.0.40 result.Folder is null
    // Microsoft.Maui.Controls 10.0.31 result.Folder is not null
    if (result.Folder is not null)
    {
        Console.WriteLine("folder operation");
        await Task.CompletedTask;
    }
}

●Platform-dependent code

public static string DownloadPath {
    get {
#if ANDROID
        var downloadDirectory = Android.OS.Environment.GetExternalStoragePublicDirectory(Android.OS.Environment.DirectoryDownloads);
        if (downloadDirectory is null)
            return string.Empty;
        else
            return downloadDirectory.AbsoluteFile.Path;
#elif WINDOWS
        return "c:\\data";
#else
        return string.Empty;
#endif
    }

●10.0.31
Image

●10.0.40
Image

●Exception
[result.Exception.Message]
Method Microsoft.Maui.ApplicationModel.IntermediateActivity.StartAsync(Android.Content.Intent,int,System.Action1<Android.Content.Intent>,System.Action1<Android.Content.Intent>)' is inaccessible from method CommunityToolkit.Maui.Storage.FolderPickerImplementation+d__0.MoveNext()'

[result.Exception.Source]
CommunityToolkit.Maui.Core

[result.Exception.StackTrace]
at CommunityToolkit.Maui.Storage.FolderPickerImplementation.InternalPickAsync(String initialPath, CancellationToken cancellationToken) in //src/CommunityToolkit.Maui.Core/Essentials/FolderPicker/FolderPickerImplementation.android.cs:line 37
at CommunityToolkit.Maui.Storage.FolderPickerImplementation.PickAsync(String initialPath, CancellationToken cancellationToken) in /
/src/CommunityToolkit.Maui.Core/Essentials/FolderPicker/FolderPickerImplementation.shared.cs:line 11

[result.Exception.InnerException]
none

Link to public reproduction project repository

none

Environment

- .NET MAUI CommunityToolkit:14.0.0
- OS:Android 15/16
- .NET MAUI:10

Anything else?

I haven't tried it on iOS, but on Windows the folder picker appears as expected.

Activity

  1. changed the title [-][BUG][/-] [+][BUG]FolderPicker.PickAsync fails on Microsoft.Maui.Controls Version="10.0.40"[/+] on Feb 13, 2026
  2. TheCodeTraveler commented on Feb 13, 2026

    @TheCodeTraveler
    Collaborator

    Thanks! I've confirmed that this is a bug introduced by breaking changes in Microsoft.Maui.Controls v10.0.40

    Workaround

    To use CommunityToolkit.Maui v14.0.0, downgrade to Microsoft.Maui.Controls v10.0.31 until the .NET MAUI team can publish a fix

  3. locked and limited conversation to collaborators on Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions