Describe the bug
The FileOpenPicker, FileSavePicker, and FolderPicker in the WinUI3 Desktop sample solution break and close the application.
Steps to reproduce the bug
-
Clone the WinUI3 Problems FilePicker repository.
-
Go to the FilePickerWinUI folder.
-
Open the FilePickerWinUI solution in Visual Studio 2019 Preview.
-
Build and run with Debug x64.
-
Test each button
A. FileOpenPicker
1. Click the FileOpenPicker button.
2. Select one or more files.
3. Click [Open].
4. The application will immediately close.
B. FileSavePicker
1. Click the FileSavePicker button.
2. The application should crash with an error. See Screenshot#1
C. FolderPicker
1. Click the FolderPicker button.
2. Select one folder.
3. Click [Select Folder].
4. The application will immediately close.
Expected behavior
We expect the application to display the path of the selected file(s) or folder.
We expect the FileOpenPicker, FileSavePicker, and FolderPicker to allow the user to select files or a folder.
Screenshots

Screenshot#1 - Current Behavior (Error Message)

Screenshot#2 - Application Appearance
Version Info
NuGet package version:
[Microsoft.VCRTForwarders.140 1.0.6]
[Microsoft.WinUI 3.0.0-preview1.200515.3]
Targeting:
Target: Universal Windows
Target version: Windows 10, version 1809 (10.0; Build 17763)
Min version: Windows 10, version 1809 (10.0; Build 17763)
| Windows 10 version |
Saw the problem? |
| Insider Build (xxxxx) |
|
| November 2019 Update (18363) |
|
| May 2019 Update (18362) |
|
| October 2018 Update (17763) |
Yes |
| April 2018 Update (17134) |
|
| Fall Creators Update (16299) |
|
| Creators Update (15063) |
|
| Device form factor |
Saw the problem? |
| Desktop |
Yes |
| Mobile |
|
| Xbox |
|
| Surface Hub |
|
| IoT |
|
Additional context
We copied the related C# code from the microsoft/WinUI-3-Demos.
You will see this in App.xaml.cs and MainWindow.xaml.cs.
If we set the Debug -> Debugger Type -> Application proccess to Native Only, then the FolderPicker will work without crashing. However, the other two buttons will still not work.
Describe the bug
The FileOpenPicker, FileSavePicker, and FolderPicker in the WinUI3 Desktop sample solution break and close the application.
Steps to reproduce the bug
Clone the WinUI3 Problems FilePicker repository.
Go to the FilePickerWinUI folder.
Open the FilePickerWinUI solution in Visual Studio 2019 Preview.
Build and run with Debug x64.
Test each button
A. FileOpenPicker
B. FileSavePicker
C. FolderPicker
Expected behavior
We expect the application to display the path of the selected file(s) or folder.
We expect the FileOpenPicker, FileSavePicker, and FolderPicker to allow the user to select files or a folder.
Screenshots
Screenshot#1 - Current Behavior (Error Message)
Screenshot#2 - Application Appearance
Version Info
NuGet package version:
[Microsoft.VCRTForwarders.140 1.0.6]
[Microsoft.WinUI 3.0.0-preview1.200515.3]
Targeting:
Target: Universal Windows
Target version: Windows 10, version 1809 (10.0; Build 17763)
Min version: Windows 10, version 1809 (10.0; Build 17763)
Additional context
We copied the related C# code from the microsoft/WinUI-3-Demos.
You will see this in App.xaml.cs and MainWindow.xaml.cs.
If we set the Debug -> Debugger Type -> Application proccess to Native Only, then the FolderPicker will work without crashing. However, the other two buttons will still not work.