SboxAnalyzers 3.0.0

dotnet add package SboxAnalyzers --version 3.0.0                
NuGet\Install-Package SboxAnalyzers -Version 3.0.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="SboxAnalyzers" Version="3.0.0">
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SboxAnalyzers --version 3.0.0                
#r "nuget: SboxAnalyzers, 3.0.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.
// Install SboxAnalyzers as a Cake Addin
#addin nuget:?package=SboxAnalyzers&version=3.0.0

// Install SboxAnalyzers as a Cake Tool
#tool nuget:?package=SboxAnalyzers&version=3.0.0                

S&box Analyzers

A collection of Roslyn analyzers for analyzing code used in S&box.


  • SB9001: Code accesslist checking.
    • S&box uses a code accesslist system, the analyzer can check your code to make sure you are not using anything that would breach it. Code accesslist showcase
  • SB9002-SB9008 Networked property analyzing.
    • SB9002: Warning of LocalAttributes lack of implementation (#2169)
    • SB9003: Error for not implementing the change method callback defined in a ChangeAttribute.
    • SB9004: Error for having an incorrect number of parameters for a change method callback.
    • SB9005: Error for having an incorrect type in the parameters for a change method callback.
    • SB9006: Error for having the static keyword on a networked property.
    • SB9007: Error for having a non-networkable type on a networked property.
    • SB9008: Error for having a networked property that is not auto-implemented ({ get; set; }). Networked property showcase
  • SB9009-SB9011 Event listener analysis.
    • SB9009: Error for having an incorrect event listener parameter count.
    • SB9010: Error for having an incorrect event listener parameter type.
    • SB9011: Warning for using an event that has parameters with no MethodArgumentsAttribute.
  • SB9012: Server command parameter type is unsupported.
  • SB9013: BaseNetworkable derived type has no parameterless constructor.


You can get the analyzer on NuGet, GitHub, and Visual Studio Marketplace.

If installing through NuGet, you can add the following to your csproj file:

<PackageReference Include="SboxAnalyzers" Version="1.0.0">
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>

If installing through the DLL, you can add the following to your csproj file:

<Analyzer Include="path\to\the\analyzer.dll" />


Distributed under the MIT License. See the license for more information.


Contributions are very much welcomed! When making your pull request please make sure your code is neatly formatted and passes all tests.

Known Issues

  • There are bound to be false positives that come up. If you experience one, please submit an issue so that it can be looked into!
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.0.0 164 5/15/2023
2.0.0 146 5/11/2023
1.0.0 152 5/10/2023

Initial release.