Neolution.CodeAnalysis.TestsRuleset 3.3.0-beta.1

Prefix Reserved
This is a prerelease version of Neolution.CodeAnalysis.TestsRuleset.
dotnet add package Neolution.CodeAnalysis.TestsRuleset --version 3.3.0-beta.1
                    
NuGet\Install-Package Neolution.CodeAnalysis.TestsRuleset -Version 3.3.0-beta.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Neolution.CodeAnalysis.TestsRuleset" Version="3.3.0-beta.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Neolution.CodeAnalysis.TestsRuleset" Version="3.3.0-beta.1" />
                    
Directory.Packages.props
<PackageReference Include="Neolution.CodeAnalysis.TestsRuleset">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Neolution.CodeAnalysis.TestsRuleset --version 3.3.0-beta.1
                    
#r "nuget: Neolution.CodeAnalysis.TestsRuleset, 3.3.0-beta.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Neolution.CodeAnalysis.TestsRuleset&version=3.3.0-beta.1&prerelease
                    
Install Neolution.CodeAnalysis.TestsRuleset as a Cake Addin
#tool nuget:?package=Neolution.CodeAnalysis.TestsRuleset&version=3.3.0-beta.1&prerelease
                    
Install Neolution.CodeAnalysis.TestsRuleset as a Cake Tool

Neolution Code Analysis Rulesets

NuGet NuGet

Neolution.CodeAnalysis provides a plug-and-play code analysis standard for .NET projects. By adding this package, you instantly enforce consistent, high-quality code with minimal setup—no need to maintain your own ruleset or configuration. The package includes:

  • Pre-configured Roslyn analyzers (StyleCop, SonarSource)
  • Strict and up-to-date rules for code quality and security
  • Automatic conversion of warnings to errors (except in Debug)
  • A single source of truth for code style and best practices
  • Easy updates: just bump the package version to get the latest rules

Why use this package?

  • Save time on code reviews by catching issues early
  • Ensure all projects follow the same standards
  • Reduce technical debt and improve maintainability
  • Onboard new developers faster with clear, enforced guidelines
  • Flexible: You can override any rules or severities in your own .editorconfig files at the project or solution level to fit your team's needs.

Packages

Installation

Install via NuGet Package Manager:

Install-Package Neolution.CodeAnalysis

or for test projects:

Install-Package Neolution.CodeAnalysis.TestsRuleset

Or add the following to your .csproj:

<ItemGroup>
  <PackageReference Include="Neolution.CodeAnalysis" Version="*">
    <PrivateAssets>all</PrivateAssets>
    <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  </PackageReference>
</ItemGroup>

Versioning

  • MAJOR: Incompatible changes, may require significant refactoring
  • MINOR: New rules or rule changes, may break the build
  • PATCH: Safe to update, only disables or lowers severity of rules

See CHANGELOG.md for details.

License

This project is licensed under the MIT License.

Contributing

Contributions, issues, and feature requests are welcome! Please open an issue or pull request on GitHub.

Note: The ruleset is intentionally opinionated and curated by Neolution to reflect our collective experience and values. While we welcome feedback and suggestions, changes to the rules themselves are carefully considered to maintain consistency across projects. If your requirements differ significantly, you are welcome to fork the package and adapt it to your needs.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.3.0-beta.1 33 6/10/2025
3.3.0-beta.0 106 6/4/2025
3.3.0-alpha.1 113 6/4/2025
3.3.0-alpha.0 64 10/11/2024
3.2.1 5,126 11/18/2024
3.2.0 523 10/11/2024
3.2.0-alpha.3 58 10/7/2024
3.2.0-alpha.2 59 10/1/2024
3.2.0-alpha.1 68 10/1/2024
3.2.0-alpha.0 61 10/1/2024
3.1.2 574 10/3/2024
3.1.1 420 9/20/2024
3.1.1-alpha.0 62 9/20/2024
3.1.0 122 9/19/2024
3.1.0-beta.1 189 4/3/2024
3.1.0-beta.0 365 2/12/2024
3.0.5 9,172 9/28/2023
3.0.4 96 9/27/2023
3.0.3 2,131 7/20/2023
3.0.2 1,150 7/17/2023
3.0.1 134 7/12/2023
3.0.0 495 6/28/2023
3.0.0-rc.4 98 6/22/2023
3.0.0-rc.3 93 6/20/2023
3.0.0-rc.2 104 6/16/2023
3.0.0-rc.1 97 6/14/2023
3.0.0-rc.0 99 6/14/2023
3.0.0-beta0016 139 3/8/2023
3.0.0-beta0015 121 3/8/2023
3.0.0-beta0014 118 3/3/2023
3.0.0-beta0013 112 3/2/2023
3.0.0-beta0011 114 2/15/2023
3.0.0-beta0010 110 2/15/2023
3.0.0-beta0006 112 2/14/2023
3.0.0-beta0005 114 2/14/2023
3.0.0-beta0004 111 2/14/2023
3.0.0-beta0001 1,485 2/14/2023
2.7.2 131 6/28/2023
2.7.2-rc.0 99 6/14/2023
2.7.1 1,214 6/14/2023
2.7.1-rc.0 99 6/14/2023
2.7.1-alpha.5 96 6/14/2023
2.7.0 1,210 5/30/2023
2.6.1 2,055 2/9/2023
2.6.0 1,365 2/7/2023
2.5.9 6,393 6/23/2022