locked
Async CTP: The type or namespace name 'await'

    Question

  • Today I downloaded and "successfully" installed the Async CTP 3.0 on an XP PC (x86) with  VS 10 Professional SP1.

    I did not have async ctp installed before.

    Now Async CTP 3.0 is not listed in the "Add or Remove Programs" panel.

    When trying to run any of the samples the async and await keywords generate errors:

    The type or namespace name 'async' could not be found (are you missing a using directive or an assembly reference?)

    The type or namespace name 'await' could not be found (are you missing a using directive or an assembly reference?)

    What can I do ?

    --------------------------


    hdolder

    Friday, March 23, 2012 6:32 PM

Answers

All replies

  • Try this go to the soution explorer, then add a reference.  You will have to look for it but it's easy to spot as you'll see the word "async" in there somewhere.

    JP Cowboy Coders Unite!

    Friday, March 23, 2012 6:42 PM
  • Try this go to the soution explorer, then add a reference.  You will have to look for it but it's easy to spot as you'll see the word "async" in there somewhere.

    JP Cowboy Coders Unite!

    The sample "Boids" already contais a Reference to

    C:\Documents and Settings\Herman\My Documents\Microsoft Visual Studio Async CTP\Samples\AsyncCtpLibrary.dll

    It seems to me that the problem is with the compiler.


    hdolder

    Friday, March 23, 2012 7:24 PM
  • Ok so if it already contains a reference when you look at the refence does it have a yellow mark by it?  If it does it's telling you it can't find the dll.

    JP Cowboy Coders Unite!

    Friday, March 23, 2012 7:44 PM
  • Ok so if it already contains a reference when you look at the refence does it have a yellow mark by it?  If it does it's telling you it can't find the dll.

    JP Cowboy Coders Unite!


    It does NOT have a yellow mark by it.
    Te compiler version is
    csc.exe 4.0.30319

    hdolder

    Friday, March 23, 2012 8:01 PM
  • See same problem in
    http://social.msdn.microsoft.com/Forums/en-US/async/thread/4828ae68-b073-43f7-8ed8-b6359353ce06
    reported by
    Ido Ran Wednesday, March 21, 2012 7:53 PM
    with yet no answers.

    hdolder

    Friday, March 23, 2012 8:11 PM
  • Very good, looks like a potential bug.  I think I remember reading that they wanted us to remove the prior version before installing new but could be wrong.  I don't know if 64bit and 32bit systems get different versions either.

    JP Cowboy Coders Unite!

    Friday, March 23, 2012 10:05 PM
  • To diagnose installation issues, you need to report all four version numbers as per this page:
    http://blogs.msdn.com/b/lucian/archive/2011/11/01/async-ctp-v3-installation.aspx

    I wrote another blog post explaining the installation issues further:
    http://blogs.msdn.com/b/lucian/archive/2012/03/25/asyncctp-installation-problems-and-vs11.aspx

    Sunday, March 25, 2012 5:46 PM
    Owner