You add a reference to StackExchange.Redis in your .NET 4.0 project and you get the following exception:
Method
System.Runtime.CompilerServices.AsyncTaskMethodBuilder1\[ System.Boolean \].AwaitUnsafeOnCompleted:
type argument
'Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable
1+ConfiguredTaskAwaiter [StackExchange.Redis.ServerEndPoint]’
violates the constraint of type parameter ‘TAwaiter’.
The solution can be found here:
Try running Update-Package Microsoft.Bcl