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

    Frage

  • 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

    Freitag, 23. März 2012 18:32

Antworten

Alle Antworten

  • 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!

    Freitag, 23. März 2012 18:42
  • 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

    Freitag, 23. März 2012 19:24
  • 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!

    Freitag, 23. März 2012 19:44
  • 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

    Freitag, 23. März 2012 20:01
  • 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

    Freitag, 23. März 2012 20:11
  • 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!

    Freitag, 23. März 2012 22:05
  • 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

    Sonntag, 25. März 2012 17:46
    Besitzer