Visual Studio not recognizing async keyword
-
21 Mart 2012 Çarşamba 19:53
Hi,
My colleges have both Windows 7 and install Async CTP V3.
They have the right csc.exe file version but inside visual studio it does not recognize the async/await keywords.
When they try to compile the project is show the error message: Invalid token 'void' in class, struct, or interface member declaration
Thank you,
Ido.
Tüm Yanıtlar
-
25 Mart 2012 Pazar 17:44Sahip
If csc.exe has right version the installer upgraded .NET framework succesfully.
If VS2010 doesn't recognize the keywords, then either (1) the installer failed to update VS correctly, or (2) they have some third-party plugin like Resharper which doesn't recognize the keywords.
To check whether the installer updated VS correctly, please check the version of msvbide.exe from the instructions on this page http://blogs.msdn.com/b/lucian/archive/2011/11/01/async-ctp-v3-installation.aspx
If the installer didn't update VS correctly, I wrote some other hints here:
http://blogs.msdn.com/b/lucian/archive/2012/03/25/asyncctp-installation-problems-and-vs11.aspx- Yanıt Olarak Öneren Stephen Toub - MSFTMicrosoft Employee, Moderator 25 Mart 2012 Pazar 22:20
- Yanıt Olarak İşaretleyen Stephen Toub - MSFTMicrosoft Employee, Moderator 09 Nisan 2012 Pazartesi 01:35
-
04 Nisan 2012 Çarşamba 18:07Are u have install vs2010 SP1? its required