我想异步支持添加到当前的VS 2010的.NET 4.0的C#项目如何在Visual Studio 2010和.NET 4.0中使用异步?
我发现:
- 的Visual Studio异步CTP - http://www.microsoft.com/en-us/download/details.aspx?id=9983
- Microsoft.Bcl.Async - https://nuget.org/packages/Microsoft.Bcl.Async
我甚至没有真正区别他们。
我安装了两个。 Visual Studio异步CTP(版本3),Microsoft.Bcl和Microsoft.Bcl.Async。 (也用于在Microsoft.Bcl中运行tools\portable-net40+sl4+win8+wp71\install.ps1
)
而且仍然看不到任何效果。对于
public async Task<CommResponse>
同样的错误 - >
Error 37 The type or namespace name 'async' could not be found (are you missing a using directive or an assembly reference?)
因此,它是真正的我应该如何使用这个东西吗?
可能重复:http://stackoverflow.com/questions/12056525/proper-way-to-use-async-with-vs-2010-now-that-vs-2012-is-released – cvraman
@cvraman抱歉,但我无法找到能够帮助我的答案。因为他们会说那里一样Async CTP适合他们,这不适合我。 – Cynede
@Chipzilla谢谢,但我已经在那里设置了.NET 4.0,并且我想要使用它进行异步处理。我想知道这是否可能? – Cynede