I am trying to use the ‘async’ and ‘await’ keywords in VS C# 2010 Express but i can’t seem to use this keyword. However, when I use this keyword in VS C# 2012 Professional, it can be used. Is there a special thing that I must download to use it?
Share
The
async/awaitfeature was introduced in C# 5, which isn’t supported by VS 2010. While the Community Technology Previews extended VS2010, I would strongly advise you to use the release version of VS 2012 instead of pre-releases. The CTPs had a few bugs, and in general it’s not a good idea to use pre-release features when the RTM version is available.Note that this isn’t an Express vs Professional issue – if you upgrade from VS C# 2010 Express to VS C# 2012 Express it’ll work fine.