1

Closed

Resharper conflict VS2013 - RS9

description

Steps:
  1. Create new console app in 2013
  2. PM> Install-Package Nito.AsyncEx -Version 3.0.0
  3. Code:
    class Program
    {
        static void Main(string[] args)
        {
            AsyncContext.Run(() => MainAsync(args));
        }
    
        static async void MainAsync(string[] args)
        {
            await Task.Delay(TimeSpan.FromSeconds(1));
        }
    }
    
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 4.0.0.0 should not stop compilation with your nuget package.

file attachments

Closed Jul 12, 2015 at 6:36 PM by StephenCleary

comments