I have an old ASP.NET Web Form project that I need to add an async library too. I've upgraded it to .NET Framework v4.5.1. It run and compiles perfectly with Visual Studio 2013.
However, when I open it with Visual Studio 2015, it wont compile. Every async call has a TaskAwaiter does not implement INotifyCompletion
error.
For instance, the following code:
public async Task AsyncDelay()
{
await Task.Delay(1);
}
Throw the following error:
CS4027 'TaskAwaiter' does not implement 'INotifyCompletion'
Any help at all would be appreciated.