Skip to content

Commit

Permalink
Make CS4014 an error in app code
Browse files Browse the repository at this point in the history
[CS4014](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs4014) Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the await operator to the result of the call.

I can't see a good reason when an app would intentionally not await a task, and suppressing the issue is very easy.
  • Loading branch information
ivarne authored Feb 10, 2025
1 parent 506a282 commit 370baca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/App/App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);1591;1998</NoWarn>
<WarningsAsErrors>CS4014</WarningsAsErrors>
</PropertyGroup>
<Target Name="CopyXMLFromPackagesForBuild" AfterTargets="Build">
<ItemGroup>
Expand Down

0 comments on commit 370baca

Please sign in to comment.