Neolution.CodeAnalysis
2.7.2-rc.0
Prefix Reserved
Renamed to Csag.CodeAnalysis (3.2.2 and later). Version 3.2.2 has the same rules. Switch every project of a solution at once.
See the version list below for details.
dotnet add package Neolution.CodeAnalysis --version 2.7.2-rc.0
NuGet\Install-Package Neolution.CodeAnalysis -Version 2.7.2-rc.0
<PackageReference Include="Neolution.CodeAnalysis" Version="2.7.2-rc.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="Neolution.CodeAnalysis" Version="2.7.2-rc.0" />
<PackageReference Include="Neolution.CodeAnalysis"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Neolution.CodeAnalysis --version 2.7.2-rc.0
#r "nuget: Neolution.CodeAnalysis, 2.7.2-rc.0"
#:package Neolution.CodeAnalysis@2.7.2-rc.0
#addin nuget:?package=Neolution.CodeAnalysis&version=2.7.2-rc.0&prerelease
#tool nuget:?package=Neolution.CodeAnalysis&version=2.7.2-rc.0&prerelease
Neolution Code Analysis rulesets
We maintain two (opinionated) rulesets for all our projects and distribute them, including 3rd-party Roslyn Analyzers (StyleCop and SonarSource) in two respective NuGet packages.
- For Libraries, Tools, Web, UI and other projects
- For projects containing automated tests (less strict rules)
Our decisions and opinions
The base ruleset consists of the default ruleset of the Roslyn Analyzers we include in the NuGet package and those used in our build tools.
- We include our own opinionated ruleset with adjusted Analyzer severities as a Global AnalyzerConfig
- In all build configurations other that
Debug, warnings will be converted to errors. - We include our own stylecop.json configuration file.
Versioning
Given a version number MAJOR.MINOR.PATCH, an incremented number for:
- MAJOR version means there are incompatible changes with the previous version,
- MINOR version means functionality and rules were added, and
- PATCH version means that the changes are all completely backwards compatible. Usually when rules were removed or lowered in severity.
What this means in practice
- You can (and should) always update the package to the latest PATCH version whenever you have the chance to do it. Applying a PATCH update should never break the build.
- Updating to the latest MINOR version can break the build. But you can expect to have Roslyn code fixes available for the changes that are needed to fix the build. Therefore, the effort should be minimal.
- For MAJOR updates, detailed migration paths will be provided.
Learn more about Target Frameworks and .NET Standard.
-
- SonarAnalyzer.CSharp (>= 8.52.0.60960)
- StyleCop.Analyzers (>= 1.2.0-beta.435)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Neolution.CodeAnalysis:
| Repository | Stars |
|---|---|
|
TiCodeX/SQLSchemaCompare
TiCodeX SQL Schema Compare
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 3.3.0-beta.2 | 41,846 | 6/13/2025 | |
| 3.3.0-beta.1 | 805 | 6/10/2025 | |
| 3.3.0-beta.0 | 2,153 | 6/4/2025 | |
| 3.3.0-alpha.1 | 691 | 6/4/2025 | |
| 3.3.0-alpha.0 | 666 | 10/11/2024 | |
| 3.2.2 | 73,192 | 9/18/2025 | |
| 3.2.1 | 116,352 | 11/18/2024 | |
| 3.2.0 | 5,261 | 10/11/2024 | |
| 3.2.0-alpha.3 | 640 | 10/7/2024 | |
| 3.2.0-alpha.2 | 793 | 10/1/2024 | |
| 3.2.0-alpha.1 | 644 | 10/1/2024 | |
| 3.2.0-alpha.0 | 643 | 10/1/2024 | |
| 3.1.2 | 4,345 | 10/3/2024 | |
| 3.1.1 | 4,395 | 9/20/2024 | |
| 3.1.1-alpha.0 | 639 | 9/20/2024 | |
| 3.1.0 | 771 | 9/19/2024 | |
| 3.1.0-beta.1 | 1,528 | 4/3/2024 | |
| 3.1.0-beta.0 | 2,306 | 2/12/2024 | |
| 3.0.5 | 80,842 | 9/28/2023 | |
| 2.7.2-rc.0 | 696 | 6/14/2023 |