I am trying to see how new C# 5.0 asynchronous (CTP) features will work. I also use ReSharper. But because it is only a CTP, ReSharper doesn't support new keywords (async/await) and highlights them as errors.
This is how it looks (code from CTP samples)
Is it possible to make ReSharper just skip these words for now?
UPDATE
I tried Early Access Program ReSharper build 6.0.2151.53 (10 May 2011) with no luck. The issue is still there so if you want it to be resolved give your vote here (following Peter's answer).
Sample examples of async and await keyword in C#. We are going to take a console Application for our demonstration. Example 1. In this example, we are going to take two methods, which are not dependent on each other. Code sample. class Program. {. static void Main(string[] args)
Async and await are the code markers, which marks code positions from where the control should resume after a task completes. Let’s start with practical examples for understanding the programming concept. Sample examples of async and await keyword in C#.
Here, await keyword is playing a vital role for waiting of Method1 task completion. There are some supporting API's from the .NET Framework 4.5 and the Windows runtime contains methods that support async programming. We can use all of these in the real-time project with the help of async and await keyword for the faster execution of the task.
Select ReSharper | Options from the main menu or press Alt+R O, then choose Code Inspection | Ignored Code on the left. In the left part of the Elements to skip section, you can specify files or folders to be ignored by the code inspection.
Async is a new language syntax that is not yet RTM, so Resharper has yet to support it. If you feel this is important, the issue is being tracked b Jetbrains and you can vote for it here: http://youtrack.jetbrains.net/issue/RSRP-196518?projectKey=RSRP
The Early Release of Resharper 6.1 now supports the async CTP.
If you can, it'd probably be worth waiting for the proper release version though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With