简体   繁体   English

我可以在.NET 3.0中使用异步CTP吗?

[英]Can I use Async CTP with .NET 3.0?

Can I use new AsyncCtpLibrary.dll with .NET 3.0? 我可以在.NET 3.0中使用新的AsyncCtpLibrary.dll吗? If I add this library in References, will it work? 如果我在参考中添加此库,它将起作用吗? I need to use async/await/task functions in a new project. 我需要在新项目中使用async / await / task函数。

The Async CTP builds upon Task Parallel Library (TPL) that's part of the 4.0 framework, so it's not usable with the 3.0 version of the framework. 异步CTP建立在4.0框架一部分的任务并行库(TPL)之上,因此该框架的3.0版本不可用。

In order to compile Async CTP code you need to install the Async CTP, because the compiler is replaced with a new compiler version capable of using the new async keywords. 为了编译Async CTP代码,您需要安装Async CTP,因为编译器已被能够使用新的async关键字的新编译器版本替换。 In order to use compiled Async CTP code it should be enough with the dlls. 为了使用编译后的异步CTP代码,dll就足够了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM