Closed hjc4869 closed 3 months ago
Unfortunately this is documented. Issues like these are major sticking points in using packaged applications in an AppContainer. If you are not targetting an AppContainer (i.e. setting the entrypoint to windows.partialTrustApplication or you explicitly set uap10:TrustLevel to AppContainer), the shell library API is usable. If you are targetting an AppContainer, be aware that the file pickers also don't work.
Hi, you might try following the instructions here if you haven't already: https://github.com/microsoft/CsWinRT/blob/master/docs/interop.md#windows-sdk
Please let us know if it didn't work for you.
Thanks!
Describe the bug
This could be reproduced easily with a simple API call below. Similarly, StorageLibrary.RequestRemoveFolderAsync() does not work either.
It's probably caused by the underlying folder picker requiring an initialization with WinRT.Interop.InitializeWithWindow() call, but Windows.Storage.StorageLibrary API does not expose the folder picker to the API caller.
Steps to reproduce the bug
Expected behavior
A folder picker shows up
Screenshots
No response
NuGet package version
Windows App SDK 1.5.5: 1.5.240627000
Packaging type
Packaged (MSIX)
Windows version
Insider Build (xxxxx)
IDE
Visual Studio 2022
Additional context
No response