How can I use the async keywords in a project targeting.net 4.0

You want the Microsoft.Bcl.Async package. That’s a properly released, non-CTP package that is stable. This also requires VS2012 since an updated compiler is needed to understand async and await.

In theory one could use older tools from VS2010 along with the older CTP library, I’d strongly recommend that you don’t – it has bugs and the installation itself is a hit-or-miss.

Leave a Comment