bc3tech
bc3tech

Reputation: 1342

Enable Async CTP in Visual Studio 2010 on Windows 8

I've been using VS2010 to develop all my applications on my Windows 8 box for a while, no major issues everything is fine.

However, today I opened a windows phone 7 project that has used the Async CTP libraries and of course noticed that 'async' keyword is invalid.

No worries, off to install the CTP.

I installed the CTP, then restarted VS and opened the project. No dice. The reference to AsyncCtpLibrary is working (in fact I use nu get for it), but nothing I seem to do fixes this issue. From what I know it means that the Async CTP didn't successfully modify the C# compiler (or something).

Anybody have this working in Windows 8? I can't find anything anywhere so thought I'd ask the SO gurus :)

Thanks!

Upvotes: 2

Views: 1670

Answers (1)

Martin Suchan
Martin Suchan

Reputation: 10620

You can use Windows 8 + Visual Studio 2010 + Windows Phone 7 SDK + AsyncCTP together, although there is one small problem during the installation.

First you need to install Visual Studio 2010, then install SP1 for Visual Studio 2010, then Windows Phone SDK and then immediately AsyncCTP v3 for Visual Studio 2010 and after this run the Windows Update.

If you install updates to Visual Studio 2010 SP1 before installing AsyncCTP, the installation of AsyncCTP fails because of collision with some Visual Studio hotfixes.

I've found the solution here together with some trial&error installing and uninstalling :)

Update: for Visual Studio 2012 the only solution for async/await in other project types is the Microsoft.Bcl.Async library, available on NuGet.

Upvotes: 4

Related Questions