How can I use the async keywords in a project targeting.net 4.0
问题 I would like to use the async keywords in a project that is created in .net 4.0. If I go to the nuget.org website and I look for "async", i many results, but mainly I get this: Visual Studio Async CTP (Version 3, Unofficial) 0.3.0 AsyncAwaitCTP 1.0.0 Which is the differences between both of them? 回答1: 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