Solhigson.Analyzers 10.2.0

dotnet add package Solhigson.Analyzers --version 10.2.0
                    
NuGet\Install-Package Solhigson.Analyzers -Version 10.2.0
                    
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="Solhigson.Analyzers" Version="10.2.0">
  <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="Solhigson.Analyzers" Version="10.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Solhigson.Analyzers">
  <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 Solhigson.Analyzers --version 10.2.0
                    
#r "nuget: Solhigson.Analyzers, 10.2.0"
                    
#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.
#:package Solhigson.Analyzers@10.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Solhigson.Analyzers&version=10.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Solhigson.Analyzers&version=10.2.0
                    
Install as a Cake Tool

Development-only compile-time rules for Solhigson projects: the IDE style rules with a fixer at warning in a packaged .globalconfig, superseded APIs, and raw-markup output through MarkupString, in a BannedSymbols.txt under Microsoft.CodeAnalysis.BannedApiAnalyzers, the SOLT test-class analyzers, and the SOLT settings declaration analyzers, which hold each [Setting] property to the settings catalog's declaration rules.

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
10.2.0 88 11/12/2026
10.1.0 464 11/11/2026
10.0.0 558 11/4/2026

10.2.0: carries the Solhigson dotnet design at 9f03470 (docs/design/dotnet-design.md). BannedSymbols.txt bans Microsoft.AspNetCore.Components.MarkupString (RS0030, a warning the .globalconfig sets, an error where warnings are errors): render the value as text, which Razor HTML-encodes, or build the markup as a component. RenderTreeBuilder.AddMarkupContent is not banned: the Razor compiler writes static markup through it and RS0030 reports in generated code. The line resolves in every project that references the Components assembly (the ASP.NET Core shared framework, or a Components package in a Blazor WebAssembly client or Razor class library), and a project that uses no MarkupString sees no change. The ban flags constructing, converting to, reading a member of or taking typeof(MarkupString); a MarkupString another assembly returns still renders raw. A site is excepted by #pragma warning disable RS0030 or [SuppressMessage]; no solhigson-exceptions.txt line excepts an RS0030 site. 10.1.0: carries the Solhigson dotnet design at 9c8f4bb (docs/design/dotnet-design.md, with the Owner line naming groomer-solhigson-framework and the settings-file rule naming SOLT003-SOLT007 as shipped in this release). The SOLT settings declaration rules, category Solhigson.Settings, set to warning in the .globalconfig, on a property carrying Solhigson.Framework's [Setting]: SOLT003 a number or duration read from the settings table without both a Floor and a Ceiling, SOLT004 a File setting with a blank Reason, SOLT005 a Secret setting outside the settings table or with a Default, SOLT006 a declaration the settings catalog refuses (a Default, Floor or Ceiling that does not parse as the property's type, inverted bounds, a Default outside them, a type off the set, a [Setting] outside a [SettingsGroup]), and SOLT007 a setting whose <group>:<property> name looks secret, by the framework's SecretSettingName rule linked in, not declared Secret; the host does not re-check a declared setting's name, so silencing SOLT007 lets that value be stored unencrypted. Each is silenced by a solhigson-exceptions.txt line SOLT00n|<group type metadata name>.<property>|<reason>|<expiry yyyy-MM-dd>. 10.0.0: first release, carrying the Solhigson dotnet design at 517cca3 (docs/design/dotnet-design.md, Enforcement layer 2 and K). The .globalconfig sets the IDE idiom rules with a fixer, RS0030 and SOLT000-SOLT002 to warning, and EnforceCodeStyleInBuild is pinned in the package .targets; BannedSymbols.txt bans the ambient clock, the parameterless Random constructor, Thread.Sleep and the non-generic collections; SOLT001 refuses an xunit v2 test class whose only teardown is IAsyncDisposable, SOLT002 a File.ReadAll* of a constant .cs path, and SOLT000 an invalid, expired or stale solhigson-exceptions.txt line.