Ranvier.Build.Recipes 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Ranvier.Build.Recipes --version 0.2.0
                    
NuGet\Install-Package Ranvier.Build.Recipes -Version 0.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="Ranvier.Build.Recipes" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ranvier.Build.Recipes" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Ranvier.Build.Recipes" />
                    
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 Ranvier.Build.Recipes --version 0.2.0
                    
#r "nuget: Ranvier.Build.Recipes, 0.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 Ranvier.Build.Recipes@0.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=Ranvier.Build.Recipes&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Ranvier.Build.Recipes&version=0.2.0
                    
Install as a Cake Tool

Ranvier.Build.Recipes

Composable .NET, EasyBuild.ShipIt, and ranvier-org cohort build recipes built on Ranvier.Build.

Each module exposes small record configurations, reusable Opt definitions, PlainStage / Stage builders, and ready-made Command groups that compose à la carte inside cli { ... }.

Modules

1. Dotnet (.NET Restore, Build, Test, Fantomas, and NativeAOT)

Member Purpose
Dotnet.Opts Reusable configuration (-c, default Release), quick (-q), skipTests, dryFormat, and isCi options
Dotnet.Stages.restoreToolsIsolated Restores each entry in .config/dotnet-tools.json via an isolated .config/.tool-restore/<tool>.json manifest without mutating disk during --explain
Dotnet.Stages.restore Runs tool restore (isolated or shared) and dotnet restore, skipped when --quick is set
Dotnet.Stages.build Builds configured projects or solutions in -c <configuration>
Dotnet.Stages.testTracedAndUntraced Runs each test project untraced and with -p:RanvierTrace=true
Dotnet.Stages.fantomas / fantomasCheck Discovers .fs files (excluding build/vendor outputs) and runs dotnet fantomas in bounded command-line batches well under Windows CreateProcessW limits
Dotnet.Stages.aotSmoke Publishes and executes a NativeAOT smoke binary under a sanitized child PATH (Dotnet.sanitizedAotPath)

2. Cohort (Dual .Traced Packaging, NuGet Push, and Sibling Checkouts)

Member Purpose
Cohort.Stages.packDual Cleans stale .nupkg/.snupkg artifacts, packs each project with RanvierTrace=false and RanvierTrace=true, and runs node .github/scripts/packages.cjs when present
Cohort.Stages.nugetPush Pushes *.nupkg with --skip-duplicate, Opt.sensitive NUGET_API_KEY / --nuget-key redaction, --dry-publish, and failIfSkipped when no key is supplied
Cohort.Commands.dev Provides dev setup, dev local (cloning missing checkouts, validating marker .fsproj paths, and writing XML-escaped Local.Build.props), and dev packages

3. ShipIt (CRLF-Safe EasyBuild.ShipIt Integration)

EasyBuild.ShipIt 3.3.0 ignores YAML front matter when CHANGELOG.md uses CRLF line endings. ShipIt guards local runs automatically:

  • ShipIt.checkChangelogsLf root normalize: Scans repository CHANGELOG.md files for \r\n in YAML front matter, either returning an actionable error or normalizing to LF (--normalize-lf) while preserving UTF-8 encoding.

  • ShipIt.Stages.bumpLocal root: Verifies LF front matter before invoking dotnet shipit --mode local.

  • ShipIt.Commands.shipit root: Exposes shipit bump, shipit generate, shipit github (with redacted --token / GITHUB_TOKEN), shipit setup, and shipit init {project,changelog,workflows,github}.

Example

open Ranvier.Build
open Ranvier.Build.Recipes

let root = __SOURCE_DIRECTORY__

[<EntryPoint>]
let main argv =
    runCli argv {
        cliName "build"
        workdir root

        Cohort.Commands.dev
            { Root = root
              Solution = "MyRepo.slnx"
              CoreRanvierRootDefault = "../Ranvier"
              ExtraSiblings = [] }

        command "pack" {
            Dotnet.Stages.restore
                { Root = root
                  Solution = "MyRepo.slnx"
                  IsolateTools = true }

            Cohort.Stages.packDual
                { Root = root
                  Projects = [ "src/MyLib/MyLib.fsproj" ]
                  OutputDir = "bin"
                  ExternalCorePackages = [ "Ranvier" ] }
        }

        ShipIt.Commands.shipit root
    }

Packages

Package Description
Ranvier.Build.Recipes Standard release build (net10.0, exact [version] sibling dependency on Ranvier.Build)
Ranvier.Build.Recipes.Traced Traced twin compiled against Ranvier.Build.Traced ([version] exact sibling dependency)
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in 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
0.2.2 552 12/3/2026
0.2.1 57 12/3/2026
0.2.0 58 12/3/2026
0.1.0 62 12/2/2026

Pre-1.0 release. The API may change before 1.0.