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
In the sample code of NativeXamlIslands, I add the following code to test the StorageFile::GetFileFromApplicationUriAsync API of c++/winrt in MainUserControl.cpp file, but it doesn't work:
In the sample code of NativeXamlIslands, I add the following code to test the StorageFile::GetFileFromApplicationUriAsync API of c++/winrt in MainUserControl.cpp file, but it doesn't work:
static const Uri s_jsonFileUri{ L"ms-appx:///Images/Activities.json" };
IAsyncAction GetActivitiesAsync()
{
auto jsonText{ co_await FileIO::ReadTextAsync(co_await StorageFile::GetFileFromApplicationUriAsync(s_jsonFileUri)) };
printf("hello.\n");
}
MainUserControl::MainUserControl()
{
GetActivitiesAsync();
InitializeComponent();
}
Please let me know what the reason behind? Thanks a lot!
The text was updated successfully, but these errors were encountered: