CS1998 is removed from VS2026 but is still reported by R# - How to stop R# reporting it?
[Using R# 2025.3.0.2]
The CS1998 warning “Async method lacks 'await' operators and will run synchronously” has been removed from Visual studio 2026:
However, Resharper still reports this warning. I cannot find any way to turn this off in the Resharper settings. Is there actually a way to turn this off?
Please sign in to leave a comment.
Hi Matthew Watson!
I've reported this behavior to the developers: RSRP-502511 CS1998 false-positive warning
For now, There are several ways to suppress the warning:
1. Project-wide via .csproj.
Add CS1998 to NoWarn:
This affects the build and editor for the whole project.
2. Solution/project via .editorconfig
Set severity to none:
This uses Roslyn’s diagnostics configuration and is respected by ReSharper for compiler warnings.
3. Inline or file scope with #pragma