I want to add async support to current VS 2010 .NET 4.0 C# project
I have found:
- Visual Studio Async CTP - http://www.microsoft.com/en-us/download/details.aspx?id=9983
- Microsoft.Bcl.Async - https://nuget.org/packages/Microsoft.Bcl.Async
I don't even get real difference between them.
I installed both. Visual Studio Async CTP (Version 3), Microsoft.Bcl and Microsoft.Bcl.Async. (also used to run tools\portable-net40+sl4+win8+wp71\install.ps1
in Microsoft.Bcl)
And still can't see any effect. Same error for
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?)
So is it real how should I use this stuff?
async
. The .Net 4.0 support is a library issue, which is how that can work - but you still need the 4.5 compiler. As far as I know! I used this btw (with VS2012, not VS2010): microsoft.com/en-us/download/details.aspx?id=29576 – ChuraAsyncCTPLibrary.dll
? In the Solution Explorer, right-click on your project and chooseAdd Reference
. You should see a 'browse' section and you can add the library through there. You can find it in yourDocuments
folder underMicrosoft Visual Studio Async CTP/Samples
. You may want to create a new project to test this out, just in case... – ThermosphereMicrosoft Visual Studio Async CTP
in My Documents – SurgeryAsyncCTPLibrary
in order to use theeasync
andawait
keywords in VS 2010. – Thermosphere