Search code examples
c#vb.netvisual-studio-2010async-ctp

Async CTP not working in VS 2010 SP1?


I downloaded Async CTP and installed it on my development machine, which has both VS 2010 and VS 2012. The installation seemed to have completed successfully (no errors).

I created a brand new WinForms project (language: VB.NET), and decorated a Form_Load with Async.

Problem is that Async keyword is not recognized. Did anyone manage to make it work and how?

Doing the same in VS 2012, targeting .NET framework 4.5 works.

Note: I don't need any Silverlight, Windows Phone or even Web at this time.


Solution

  • As suggested by @Ramhound, I uninstalled everything related to VS 2012 and 2010, then installed 2010 + SP1 + applied Async CTP3. Properly installed Async CTP3 shows a welcome screen and prompts to restart. After that VS 2010 starts supporting the async keyword. However, for the full support, it is required to reference a corresponding library from here (platform dependent):

    c:\Users\%username%\Documents\Microsoft Visual Studio Async CTP\Samples\
    

    In my case it was AsyncCtpLibrary.dll. Otherwise it will highlight the syntax, but won't compile.