FVNever.Fabricator.Resources 0.2.0

dotnet add package FVNever.Fabricator.Resources --version 0.2.0
                    
NuGet\Install-Package FVNever.Fabricator.Resources -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="FVNever.Fabricator.Resources" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FVNever.Fabricator.Resources" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="FVNever.Fabricator.Resources" />
                    
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 FVNever.Fabricator.Resources --version 0.2.0
                    
#r "nuget: FVNever.Fabricator.Resources, 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 FVNever.Fabricator.Resources@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=FVNever.Fabricator.Resources&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=FVNever.Fabricator.Resources&version=0.2.0
                    
Install as a Cake Tool

Fabricator Status Enfer Fabricator.Core on nuget.org

Fabricator is a hackable DevOps platform, similar to PowerShell's Desired State Configuration in concept.

Core Concept

With Fabricator, the user describes the desired state of their environment, and Fabricator does its best to lead the configuration to this desired state, when asked to do so.

Fabricator's "script" is an F# .fsx script, where you may use all your favorite refactoring and code inspection tools; you may wrap or augment Fabricator calls with your code if you want to.

Fabricator offers a DSL and a set of basic tasks to configure the environment, everything is available via NuGet and easily extendable.

Also, Fabricator is portable across the platforms supported by .NET.

Basic Workflow

To start using Fabricator, you should:

  1. Create a new F# script file, with contents similar to the example.
  2. Run the script with dotnet fsi ./script.fsx check — this will check the environment and show the changes that are about to be performed.
  3. If everything's alright, run the script via dotnet fsi ./script.fsx apply — this will apply the changes to the current environment.

Quick script example:

#r "nuget: FVNever.Fabricator.Console, 0.2.0"
#r "nuget: FVNever.Fabricator.Resources, 0.2.0"

open System
open System.IO
open Fabricator.Console
open Fabricator.Resources.Archive
open Fabricator.Resources.Downloads
open Fabricator.Resources.Files
open Fabricator.Resources.Hash
open TruePath

let shawlVersion = "1.7.0"
let shawlHash = Sha256 "EAA4FED710E844CC7968FDB82E816D406ED89C4486AB34C3E5DB2DA7E5927923"

let cacheDir = AbsolutePath @"T:\Temp\fabricator\download-cache"
let shawlUrl = Uri $"https://github.com/mtkennerly/shawl/releases/download/v{shawlVersion}/shawl-v{shawlVersion}-win64.zip"

let shawlDownloadCache = cacheDir / Path.GetFileName shawlUrl.LocalPath
let shawlExecutable = AbsolutePath @"C:\Programs\shawl\shawl.exe"

let installShawl = [
    downloadFile(shawlUrl, shawlHash, shawlDownloadCache)
    unpackArchive(shawlDownloadCache, shawlHash, shawlExecutable.Parent.Value)
    ensureFileExists shawlExecutable
]

let resources = [
    yield! installShawl
]

exit <| EntryPoint.main fsi.CommandLineArgs resources

This script will make sure there's an executable C:\Programs\shawl\shawl.exe downloaded from the specified URL. This executable might then be used for other resources' setup, e.g., for the Windows service resource.

Prerequisites

To work with Fabricator, you'll need .NET SDK 9.0 or later.

Documentation

License

The project is distributed under the terms of the MIT license.

The license indication in the project's sources is compliant with the REUSE specification v3.3.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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. 
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.0 164 10/19/2025
0.1.0 166 10/19/2025

[Fixed]

- EntryPoint.main now works correctly when invoked with fsi.CommandLineArgs.
- FileResource will create the target directory when needed.

[Added]

- A new Fabricator.Resources.Chocolatey module to work with Chocolatey packages on Windows.