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:

Consider not emitting CS1998 for interface implementations / method overrides · Issue #77001 · dotnet/roslyn

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?

0
1 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:

<PropertyGroup>
 <NoWarn>$(NoWarn);CS1998</NoWarn>
</PropertyGroup>

This affects the build and editor for the whole project. 
2. Solution/project via .editorconfig
Set severity to none:

dotnet_diagnostic.CS1998.severity = none

This uses Roslyn’s diagnostics configuration and is respected by ReSharper for compiler warnings. 

 3. Inline or file scope with #pragma

#pragma warning disable 1998
// Your async method code here
#pragma warning restore 1998
0

Please sign in to leave a comment.