You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to run the code from 'Pick a single file: complete code listing' via Visual Studio, the application simply hangs and never generates a file picker.
Tested on Debug/Release, x86/x64, Admin/non admin opening of Visual Studio. Also gave file picker 'any file type' permission just in case. Currently on SDK 16299, OS Version 1709 build 17025.1000.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: ea959124-e65c-c9a7-f8df-b1d53c3cd76f
Version Independent ID: 1b13337f-ac6e-490f-04c9-c7342be5f161
I tested this code, and it worked for me. I'm on an Insider Preview build (17655). No special permissions or admin privileges. The code is the same as what's on the page, except I added "Debug.WriteLine" instead of a text box and wrapped it into a method.
publicasyncvoidTestPicker(){varfolderPicker=new Windows.Storage.Pickers.FolderPicker();
folderPicker.SuggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.Desktop;
folderPicker.FileTypeFilter.Add("*");
Windows.Storage.StorageFolder folder=await folderPicker.PickSingleFolderAsync();if(folder!=null){// Application now has read/write access to all contents in the picked folder// (including other sub-folder contents)
Windows.Storage.AccessCache.StorageApplicationPermissions.
FutureAccessList.AddOrReplace("PickedFolderToken", folder);
Debug.WriteLine(folder.Name);}else{
Debug.WriteLine("Operation canceled.");}}
If you're still having issues with the file picker, I'll file a bug with the product team to investigate. Thanks for bringing this up!
When attempting to run the code from 'Pick a single file: complete code listing' via Visual Studio, the application simply hangs and never generates a file picker.
Tested on Debug/Release, x86/x64, Admin/non admin opening of Visual Studio. Also gave file picker 'any file type' permission just in case. Currently on SDK 16299, OS Version 1709 build 17025.1000.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: