all posts

Type argument Microsoft Runtime CompilerServices ConfiguredTaskAwaitable violates the constraint of type parameter TAwaiter

Published to Blog on 19 Mar 2015

You add a reference to StackExchange.Redis in your .NET 4.0 project and you get the following exception:

type argument 
violates the constraint of type parameter 'TAwaiter'.


The solution can be found here:

Try running Update-Package Microsoft.Bcl

Dan Hounshell
Web geek, nerd, amateur maker. Likes: apis, node, mobile, motorcycles, watches, food, Nashville, Savannah, Cincinnati and family. Dislikes: mean people
Dan Hounshell on Twitter