Errors shown next to "asynchronous" keywords, but assembly completed successfully

When I compile my project without opening the files, the assembly succeeds, as expected. Now, when I open a file containing any methods with the async keyword , the following messages appear in my error window:

Error   6   ; expected  
Error   10  ; expected  
Error   16  A namespace cannot directly contain members such as fields or methods   
Error   2   Identifier expected

When I create a solution, it still executes.

I installed AsyncCTPv3 and ReSharper. I have currently disabled ReSharper, but still these errors are displayed. Someone tell me?

edit: the same errors seem to be next to the keywords waiting . I mean the wait, and the asynchronous move goes hand in hand, but itโ€™s rather strange that these errors appear next to non-.NET-4.0 elements . And the compiler doesn't even care. I think that only Visual Studio has some difficulties in interpreting these keywords.

+3
source share
1 answer

Primarily. Many thanks to Joshua Drake who provided the link. Firstly, I realized that my file versions did not match the ones that should have been there. I reinstalled it without any success. Subsequently, I noticed the following paragraph on this site:

Windows Async CTP v3 ( ) 2011 .

, . , KB2635973 KB2615527 KB2645410 Async CTP v3.

Async CTP v3 .

. Async CTP, . !

+3

All Articles