winRT and c++ co_await HELP ME!

I’m trying to FilePicker using winRT. I’m in trouble because I can’t enable await.
Please tell me how to enable await or code instead of await.

code:
auto picfile = co_await Picker.PickSingleFileAsync();

VisualStudio 2019
UE4.27.2
thank you!
image

1 Like

I was able to enable “/await” option as below:

  1. Open UnrealBuildTool project.
    C:\Program Files\Epic Games\UE_4.27\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj

  2. Add Arguments.Add(“/await”); to AppendCLArguments_CPP().

  3. Rebuild UnrealBuildTool.

Then, compiling WinRT code with “co_await” was completed successfully.

1 Like

It is very kind of you. You are my hero!