Partas.TypeProvider.BuildHelper 0.1.1

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

Partas.TypeProvider

Composite provider which includes edits of EasyBuild.FileSystemProvider's AbsoluteFileSystem and VirtualFileSystem providers.

All credit to the original authors and contributors.

Partas.TypeProvider.BuildHelper

A composite type provider for common script tasks that combines EasyBuild.FileSystemProvider's with a GitProvider and ProjectProvider.

open Partas.TypeProvider.BuildHelper

type Build = BuildHelperProvider<"..", capabilityFullOverride = true>

// Each provider is shelled from a separate property, to keep tooling suggestions
// as relevant and helpful.
type FileProvider = Build.FileSystem
type GitProvider = Build.Git
type ProjectProvider = Build.Project

// Virtual file system would require a second literal string passed
// to the `BuildHelperProvider` as the configuration.
// type VirtualProvider = Build.VirtualSystem

GitProvider

The git provider provides nested types when there is some guarantee to their existence, such as branch names (divided between local and remote), remotes, and tags.

Other information can be queried through the type provider, and it will provide the value at runtime by shelling git commands.

ProjectProvider

The project provider provides nested types to detected project files, with helpers to scaffold cli commands for common operations routed with those specific projects as the targets.

Also provides utility extraction of properties, such as Version, and provides the current value within the member documentation as a design time helper.

Type Parameters

See the xml documentation on the type provider.


Build CLI

Every repository task runs through the Build project rather than a script, so the tasks are typed, debuggable, and discoverable:

dotnet run --project Build.fsproj -- --help
Command What it does
build Restores and builds the solution
test Builds and runs the Expecto suite
format Formats every source file with Fantomas (--dry-format checks instead)
lint Fails if any file needs formatting
publish Packs and pushes to NuGet (--nuget-key; falls back to the local feed)
docs Builds the fsdocs site (--watch to serve it)

Global flags: --quick skips restores and checks, --format formats before building, --dry-format checks formatting before building, --skip-tests skips the suite.

Layout

Build.fsproj              the build CLI
Build/
  Spec.fs                 typed repository paths, CLI options, process wrappers
  Program.fs              the stages and the commands
src/Partas.TypeProvider/      the library
tests/Partas.TypeProvider.Tests/  the Expecto suite

Adding a project

Spec.fs addresses the repository through EasyBuild.FileSystemProvider, so paths are checked when the build project compiles. After adding a project, register it in Spec.fs:

module Projects =
    module Directory =
        type Solution = Root.src.``Partas.TypeProvider``
        type NewThing = Root.src.``Partas.NewThing``

A typo, or a project renamed without updating the build, then fails at compile time rather than halfway through a release.

Adding a step

A step is a stage of a pipeline. A stage that needs a flag binds it in an inputs { } block, which is also what puts the flag into --help:

let myStep = inputs {
    let! quick = Options.quick

    return stage "my step" {
        when' (not quick)
        run (fun (_: StageContext) -> dotnet [ "..." ] root)
    }
}

Add it to any command's pipeline { }. Because the condition lives in the stage, the command carries no flags of its own — and adding the stage to a second command registers --quick there too.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.5 376 8/27/2026
0.2.4 98 8/27/2026
0.2.3 97 8/27/2026
0.2.2 136 8/25/2026
0.2.1 94 8/25/2026
0.2.0 101 8/24/2026
0.1.1 113 8/24/2026
0.1.0 100 8/24/2026