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" />
<PackageReference Include="Asteroid.General.CompilerTools"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Asteroid.General.CompilerTools&version=0.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 withEnum.AST1011: enums marked withFlagsAttributeend withFlags.AST1012: one type name per file — legitimate cohabitation only for same-name families (partial/generic arity), same-file extension classes (Foo/IFoo↔FooExtensions, naming convention), paired interface (IFoo+Foo, class-anchored filename) andfile-local types.AST1013: file name should match type name — partial part files may useTypeName_Part.cs/TypeName.Part.cs.AST1015: private static fields begin withs_.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 AST1014with 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.