Skip to content

Commit

Permalink
Elaborating on using <RunCodeAnalysis>false</RunCodeAnalysis>
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Oct 19, 2023
1 parent 9973430 commit 8778087
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lombiq.Analyzers/Docs/ConfiguringAnalyzers.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ If you rely on `Lombiq.Analyzers` to set up compiler properties such as `<LangVe
</Project>
```

Or if you added `Lombiq.Analyzers` to only a single project as a package reference, you can just add the `<RunCodeAnalysis>false</RunCodeAnalysis>` element.

## How to disable all analyzers during `dotnet build`

By default the `dotnet build` command runs analyzers and produces code analysis warnings if there are any but it makes the build slower. Pass the `/p:RunCodeAnalysis=false` parameter to disable analyzers during build, like:
Expand Down

0 comments on commit 8778087

Please sign in to comment.