Async, Await in visual studio 2010

后端 未结 1 1668
小鲜肉
小鲜肉 2021-01-23 21:24

I ran the below code in both VS2010 and VS2012, but VS2012 only return the response.Then i searched and found, needs to enable the async and await in VS2010.
Then by using A

相关标签:
1条回答
  • 2021-01-23 21:32

    The VS2010 compiler has no knowledge of async/await. You need to install the Async CTP in order to update VS2010 with a newer compiler.

    Unfortunately, 7 years ago the Visual Studio installer technology was far behind where it is today. The Async CTP installer acted like a VS update, so it would break each time a new VS update was released. The async team would then have to release another installer for the Async CTP to work again.

    AFAIK, this cycle was never completed, and the latest VS2010 remains incompatible with the Async CTP. Thus, it is no longer possible to construct a VS2010-with-async build machine.

    0 讨论(0)
提交回复
热议问题