IAsyncOperation<IReadOnlyList<UserNotification>>' does not contain a definition for 'GetAwaiter' [duplicate]
问题 This question already has answers here : FromBluetoothAddressAsync IAsyncOperation does not contain a definition for 'GetAwaiter' error (2 answers) Closed last year . I am using Visual Studio 2017 Professional. I have been following this guide: https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/notification-listener My problem code is as follows: using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System