Skip to content

Commit 883ec42

Browse files
committed
edits
1 parent f238043 commit 883ec42

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/code-quality/analyzers-faq.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ sections:
4848
- question: |
4949
Does .NET Compiler Platform-based code analysis work in continuous integration (CI) builds?
5050
answer: |
51-
Yes. For analyzers that are installed from a NuGet package, those rules are [enforced at build time](roslyn-analyzers-overview.md#build-errors), including during a CI build. Analyzers used in CI builds respect rule configuration from both rule sets and EditorConfig files. Currently, the code analyzers that are built into Visual Studio are not available as a NuGet package, and so these rules are not enforceable in a CI build.
51+
Yes. For analyzers that are installed with .NET SDK 5.0 or higher, or from a NuGet package, those rules are [enforced at build time](roslyn-analyzers-overview.md#build-errors), including during a CI build. Analyzers used in CI builds respect rule configuration from both rule sets and EditorConfig files. Starting with .NET 5.0, the code style analyzers that are built into Visual Studio are also included in the .NET SDK, and most of them are enforceable in a CI build. For more information, see [Enable on build](/dotnet/fundamentals/code-analysis/overview?tabs=net-9#enable-on-build).
5252
5353
- name: IDE analyzers versus StyleCop
5454
questions:

docs/code-quality/roslyn-analyzers-overview.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ The following screenshot shows the command-line build output from building a pro
9292

9393
### Rule severity
9494

95-
If you want to configure [analyzer rule severity](../code-quality/use-roslyn-analyzers.md#configure-severity-levels), you must install the analyzer as a NuGet package. You can't configure rule severity from analyzers that were installed as a Visual Studio extension.
95+
Visual Studio 2019 version 16.3 and later, you can configure rule severity using an EditorConfig file instead of a ruleset.
96+
97+
If you want to configure [analyzer rule severity](../code-quality/use-roslyn-analyzers.md#configure-severity-levels) from Solution Explorer, you must install the analyzer as a NuGet package. You can't configure rule severity from analyzers that were installed as a Visual Studio extension.
9698

9799
## Next steps
98100

0 commit comments

Comments
 (0)