Repository navigation
Getting Started
github-actions[bot] edited this page Nov 30, 2026
·
2 revisions
Start a new project pre-wired with Ferrous, <FerrousPedantic>true</FerrousPedantic>, Central Package Management, lockfiles, and NativeAOT readiness:
dotnet new install Ferrous.Templates
dotnet new ferrous -n MyApp
cd MyApp
dotnet runInstall the Ferrous metapackage to pull in all runtime libraries, source generators, Roslyn analyzers, and IDE quick-fixes:
dotnet add package FerrousOr pick individual packages a la carte:
dotnet add package Ferrous.Guard
dotnet add package Ferrous.Results
dotnet add package Ferrous.Unions
dotnet add package Ferrous.Testing # in test projectsTo enable the full Clippy-style strict preset in your .csproj or Directory.Build.props:
<PropertyGroup>
<FerrousPedantic>true</FerrousPedantic>
</PropertyGroup>dotnet tool install -g Ferrous.Tool
dotnet fe init --strict
dotnet fe audit .
dotnet fe doc ./src --output ./docs-site --open- Runtime packages target
net10.0andnet11.0, are NativeAOT-compatible and trimmable, and carry zero third-party dependencies. - All
net11.0targets compile with.NET 11runtime async (runtime-async=on) and automatically light up C# 15[Union]andclosed(IsClosedTypeAttribute) metadata. -
Ferrous.Coreadditionally targetsnetstandard2.0so Roslyn generators and analyzers share attribute contracts directly.
Ferrous — Rust quality-of-life primitives, source generators, and analyzers for .NET (.NET 10 / .NET 11, NativeAOT-ready, MIT License).