StyleBro.Migrate
0.1.0-alpha.8
See the version list below for details.
dotnet tool install --global StyleBro.Migrate --version 0.1.0-alpha.8
dotnet new tool-manifest
dotnet tool install --local StyleBro.Migrate --version 0.1.0-alpha.8
#tool dotnet:?package=StyleBro.Migrate&version=0.1.0-alpha.8&prerelease
nuke :add-package StyleBro.Migrate --version 0.1.0-alpha.8
stylebro-migrate
Moves a repository from StyleCop.Analyzers to StyleBro without changing
its code style. It reads the repository's StyleCop setup (rulesets, global configs, .editorconfig files,
stylecop.json, the StyleCop version) and writes the StyleBro and .NET SDK settings that enforce the same things.
dotnet tool install --global StyleBro.Migrate --prerelease
stylebro-migrate path/to/repo # dry run: what StyleCop enforces, what carries over, the settings
stylebro-migrate path/to/repo --write # writes them
With --write it:
- writes the settings into the repository's
.editorconfigfiles, between# BEGIN stylebro-migrateand# END stylebro-migrate(running it again replaces the block); - turns StyleBro's preset off in
Directory.Build.props, since the generated settings replace it; - adds the replacing rule ids to existing StyleCop suppressions (
#pragma warning disable,[SuppressMessage],<NoWarn>).
Then add the StyleBro.Analyzers package, remove StyleCop.Analyzers, and run dotnet format.
The report lists the StyleCop rules that nothing enforces after the switch, and why. Details: docs/migrating.md.
Baseline
stylebro-migrate baseline [path] [--project MySolution.sln]
Writes stylebro.baseline with every violation dotnet format would fix today. The StyleBro.Analyzers package then
hides those in the build, the IDE and dotnet format, so only new code has to follow the rules; a violation counts as
new once its line is edited. Whitespace formatting can't be baselined. Details:
docs/baseline.md.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.0-alpha.1 | 184 | 10/13/2026 |
| 0.6.0-alpha.1 | 62 | 10/12/2026 |
| 0.5.0-alpha.1 | 273 | 10/10/2026 |
| 0.4.0-alpha.1 | 55 | 10/10/2026 |
| 0.3.0-alpha.1 | 54 | 10/9/2026 |
| 0.2.0-alpha.1 | 64 | 10/6/2026 |
| 0.1.0-alpha.8 | 68 | 10/2/2026 |
| 0.1.0-alpha.7 | 59 | 10/2/2026 |
| 0.1.0-alpha.6 | 66 | 10/1/2026 |
| 0.1.0-alpha.5 | 69 | 10/1/2026 |