diff --git a/docs/new-windows-ml/get-started.md b/docs/new-windows-ml/get-started.md index d722e251..2e298afc 100644 --- a/docs/new-windows-ml/get-started.md +++ b/docs/new-windows-ml/get-started.md @@ -157,6 +157,8 @@ The simplest way to get started is to let Windows ML automatically discover, dow ```cppwinrt #include +#include +#include #include // First we need to create an ORT environment @@ -167,7 +169,7 @@ winrt::Microsoft::Windows::AI::MachineLearning::ExecutionProviderCatalog catalog winrt::Microsoft::Windows::AI::MachineLearning::ExecutionProviderCatalog::GetDefault(); // Ensure and register all compatible execution providers with ONNX Runtime -catalog.EnsureAndRegisterCertifiedAsync().get(); +co_await catalog.EnsureAndRegisterCertifiedAsync(); ``` ### [C/C++](#tab/c)