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

    問題

  • 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

    2012年3月23日 下午 06:32

解答

所有回覆

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

    2012年3月23日 下午 06: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

    2012年3月23日 下午 07: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!

    2012年3月23日 下午 07: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

    2012年3月23日 下午 08: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

    2012年3月23日 下午 08: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!

    2012年3月23日 下午 10: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

    2012年3月25日 下午 05:46