I'm building a .NETStandard library (version 1.3), using async await inside the library works fine until i add a reference to Windows.Foundation.UniversalApiContract. After adding this reference i get errors on every await keyword inside my code
this is the error
'IAsyncAction' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'IAsyncAction' could be found
this is the code i need to run
await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Low, () => { OnUserChanged?.Invoke(user); });
removing the await keyword result in a working code, but i get this warning
Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.
How can i solve this?