- Create new console app in 2013
- PM> Install-Package Nito.AsyncEx -Version 3.0.0
static void Main(string args)
AsyncContext.Run(() => MainAsync(args));
static async void MainAsync(string args)
Resharper complains about System.Runtime, but actually code runs fine unless you let resharper add that reference to runtime, then it fails to build. Interestingly, suspending and resuming resharper then does not show error.
Understand if you regard this as resharper bug, but thought that adding reference to System.Runtime 18.104.22.168 should not stop compilation with your nuget package.