什么是使用VS2010异步CTP的主要风险与收益?(What are the major risks

2019-08-20 06:11发布

I'd like to use Visual Studio Async CTP (Version 3) for developing and testing in VS2010 SP1 on Windows XP SP3 mainly because my clients (as well as I) on Windows XP SP3. Ghere is a related discussion on MSDN forum: If I target .net 4.0 but run on a machine that has .net 4.5 will .net 4.0 WPF bugs still be there?

Though, the NOTE ON "AS IS" LICENSE tells:

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

How serious are those flaws and bugs, being abandoned in Visual Studio Async CTP (Version 3) and what are the possible other consideration that I should take into account which can force me to change my decision?

The main reasons of asking are that:

  • I did not follow much anything about C#/.NET 4.5 VS2012 topics (due to sticking to Windows XP SP3, .NET 4.0 and VS2010) and I need to reduce the time of bumping into critical issues;
  • I have never before been in a situation when I should probably follow the lists of bug fixes (instead of specific isolated issue on a by-need basis)
    Do I really need now, for this case?

The main question:
What are the araes/possibilities that the unsupported flaws will not have easy workarounds in .NET/C# 4.0 in VS2010, Windows XP SP3 and those that can outweigh the benefits of using async/await

The asnwer to @DanPuzey's comment:

The application is based on TPL, WPF dealing with asynchronously coming from the internet (stock exchange) data flows. I have never before needed to care that I would be left with unsupported docs (samples), flaws and bugs. I probably will not be able to ask about them since they will not be reproducible by MSFT support as well as by others. I'd like to estimate the risks vs. benefits of using unsupported extensions

Are the main differences, flaws, bugs and risks infinite and cannot be enumerated? At all?

Let me cite from download page:

"Includes a new EULA for production use. Note - This license does not constitute encouragement for you to use the CTP for your production code. The CTP remains an unsupported and use-at-your-own-risk Technology Preview. However, we’ve received many requests from developers to use the CTP for production code, and so have changed the license to allow that"

The answer to @CodesInChaos' comment:

This is not the option as it was mentioned in the beginning of my question with reference to preventer link description here discussion. One cannot develop and test .NET 4.0 app from VS2012 or machine having .NET 4.5. It is impossible to install VS2012 or .NET4.5 on Windows XP. My experience (tried to install apps from other vendors) is that mentioned by you approach does not produce apps running on Windows XP

Answer 1:

我第二@CodesInChaos'你开发使用VS2012建议。 我使用VS2012在Windows 7开发.NET 4级的应用程序在Windows XP上运行,并能正常工作。 唯一需要注意的是,你不能在.NET 4调试(你实际上是在.NET 4.5运行时上运行),但是那并不重要99%的情况。

我没有在生产中使用异步CTP; 我认为这是一个令人惊讶的CTP稳定。 这就是说,有一些已知的错误。 最引人注意的是操作的排序周围await表达式。 所以遵循的只有一分方针await每条语句,使await的表达你的顶级表现,如:

var result = await ...;

我相信乔恩斯基特也揭露了自己在一些比较模糊的错误eduasync系列 。

没有异步CTP的bug列表已经被固定的,或者说仍然存在(在Microsoft.Bcl.Async )。 有可能是微软内部的一些名单,但没有人知道它。

该应用程序是基于TPL,WPF处理从互联网(证券交易所)的数据流异步到来。

在这种情况下,考虑的Rx 。 Rx的完全支持.NET 4,但我相信它确实需要VS2012进行开发。



文章来源: What are the major risks vs. benefits of using VS2010 Async CTP?