正确的方式使用异步用VS 2010,现在2012 VS释放? [英] Proper way to use Async with VS 2010 now that VS 2012 is released?

查看:368
本文介绍了正确的方式使用异步用VS 2010,现在2012 VS释放?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于工作限制,我需要继续使用Visual Studio 2010在不久的将来。与此同时,我一直以我个人的编码学习异步。是最新的异步CTP用C#5.0的异步语言功能完全一致?并安装CTP异步使用异步与VS2010的正确方法是什么?

Due to work restrictions, I need to continue using Visual Studio 2010 for the immediate future. At the same time, I have been learning about Async in my personal coding. Is the latest Async CTP fully consistent with the Async language features of C# 5.0? And is installing the Async CTP the correct way to use Async with VS2010?

推荐答案

的异步CTP是使用异步在Visual Studio 2010年。不过,这是不是唯一的方法在异步,使得它成为.NET 4.5 / Visual Studio的2012年,CTP的几个错误已得到修复的最终版本。你不会得到在Visual Studio 2010中这些bug修复,根据CTP的自述:

The Async CTP is the only way to use async in Visual Studio 2010. However, it is not the async that made it into .NET 4.5 / Visual Studio 2012, several bugs in the CTP have been fixed in the final release. You will not get these bug fixes in Visual Studio 2010, according to the CTP's readme:

注记原样许可

虽然异步CTP许可不,你使用它在生产环境中,风险自担prevent,我们建议您不要。的这个CTP的目的完全是为了收集反馈我们意异步设计。我们没有设计或建造它在生产环境中使用,并且尽可能彻底,需要在生产环境中使用没有测试,我们相信它有太多的瑕疵是适合在生产环境中使用。在异步CTP我们衷心AP preciate反馈,但我们不打算做任何修正的异步CTP本身:我们做只会出现在最终的发布支持产品修复

While the Async CTP license does not prevent you using it at your own risk in production environments, we advise you not to. The goal of this CTP is solely to gather feedback on our intended async design. We did not design or build it to be used in production environments, and did not test it as thoroughly as is needed for use in production environments, and we believe it has too many flaws to be fit for use in production environments. We gratefully appreciate feedback on the Async CTP, but we do not plan to make any fixes to the Async CTP itself: the fixes we make will only appear in the eventual supported released product.

如果你绝对需要VS 2010,我会尝试是先安装异步CTP,然后安装.NET 4.5(包括运行时和SDK)。在Visual Studio中开发,但建立一个使用独立的编译器。

If you absolutely need VS 2010, what I would try is to install the Async CTP first, and then install .NET 4.5 (both runtime and SDK). Develop in Visual Studio, but build using the standalone compiler.

这篇关于正确的方式使用异步用VS 2010,现在2012 VS释放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆