Asteroid.General.CompilerTools 0.2.2

dotnet add package Asteroid.General.CompilerTools --version 0.2.2
                    
NuGet\Install-Package Asteroid.General.CompilerTools -Version 0.2.2
                    
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="Asteroid.General.CompilerTools" Version="0.2.2">
  <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="Asteroid.General.CompilerTools" Version="0.2.2" />
                    
Directory.Packages.props
<PackageReference Include="Asteroid.General.CompilerTools">
  <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 Asteroid.General.CompilerTools --version 0.2.2
                    
#r "nuget: Asteroid.General.CompilerTools, 0.2.2"
                    
#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 Asteroid.General.CompilerTools@0.2.2
                    
#: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=Asteroid.General.CompilerTools&version=0.2.2
                    
Install as a Cake Addin
#tool nuget:?package=Asteroid.General.CompilerTools&version=0.2.2
                    
Install as a Cake Tool

Asteroid.General.CompilerTools

General coding convention analyzers shared by Asteroid framework modules and their consumers.

The package is a development dependency. Its analyzers are automatically applied through buildTransitive; consumers do not add analyzer references manually.

Current rules:

  • AST1010: ordinary enum type names end with Enum.
  • AST1011: enums marked with FlagsAttribute end with Flags.
  • AST1012: one type name per file — legitimate cohabitation only for same-name families (partial/generic arity), same-file extension classes (Foo/IFooFooExtensions, naming convention), paired interface (IFoo + Foo, class-anchored filename) and file-local types.
  • AST1013: file name should match type name — partial part files may use TypeName_Part.cs / TypeName.Part.cs.
  • AST1015: private static fields begin with s_.
  • AST1016: private instance fields begin with _.
  • AST1014: a source file should stay within 600 lines — split by responsibility into partial part files (TypeName_Part.cs). Exempt: generated files (.g.cs, <auto-generated /> first line, obj/bin), and machine-table data files via an in-file #pragma warning disable AST1014 with a reason comment.
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
0.2.2 49 9/8/2026
0.2.1 287 9/7/2026
0.2.0 99 8/30/2026
0.1.2 93 8/28/2026
0.1.1 136 8/21/2026
0.1.0 149 8/20/2026