You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rules/Proj0025.md
+25-3Lines changed: 25 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,16 @@ parent: General
3
3
ancestor: MSBuild
4
4
---
5
5
6
-
# Proj0025: Migrate from ruleset file to .editorconfig file
7
-
Microsoft deprecated the use of `.ruleset` in favor of `.editorconfig` files.
6
+
# Proj0025: Migrate from ruleset file to .globalconfig file
7
+
Microsoft deprecated the use of `.ruleset` in favor of `.globalconfig` files.
8
8
In Visual Studio by clicking the file, it will automatically pop up a dialog to
9
9
convert the ruleset.
10
10
11
11
Alternatively, you can download the converter yourself from [NuGet](https://www.nuget.org/packages/Microsoft.CodeAnalysis.RulesetToEditorconfigConverter).
12
+
For more info: [learn.microsoft.com](https://learn.microsoft.com/visualstudio/code-quality/use-roslyn-analyzers?view=vs-2022#convert-an-existing-ruleset-file-to-editorconfig-file)
12
13
13
-
For more info: [learn.microsoft.com])https://learn.microsoft.com/visualstudio/code-quality/use-roslyn-analyzers?view=vs-2022#convert-an-existing-ruleset-file-to-editorconfig-file)
14
+
Note the difference between `.editorconfig` and `.globalconfig` here. It is
15
+
advised to put analyzer configuration in the `[.globalconfig` file](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/configuration-files#global-analyzerconfig).
14
16
15
17
## Non-compliant
16
18
```xml
@@ -25,6 +27,26 @@ For more info: [learn.microsoft.com])https://learn.microsoft.com/visualstudio/co
0 commit comments