Faktory.Core 1.0.0.7

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

faktory

Insanely simple build tool

Usage

  1. Create a new .NET Framework 4.8.1 Console app
  • We recommend creating a folder called "BuildTool" in the source folder for you project and using this as the Location for your new console app. Select Place solution and project in the same directory. This keeps the build tool out of your main solution and it can be loaded and edited independently.
  1. Add Faktory.Core nuget package
  2. Modify Program.cs to call into Faktory.
  • static void Main(string[] args) { Faktory.Core.FaktoryProgram.Run(args); }
  1. Create your faktory class
namespace BuildTool
{
    public class MyFaktory : Faktory.Core.Faktory
    {
        
    }
}
  1. The bare minimum required to get a working faktory is to override the RunBuild method.

Be sure to call .Execute() at the end of your chain.

protected override void RunBuild()
{            
    .Run(Clean)
    .Then(Build)
    .Execute();
}

void Clean() { // Clean }
void Build() { // Build }

Options

Your Faktory can accept arguments from the command line. Arguments must be in a key=value form. Some examples:

✅ BuildTool.exe version=1.2.3.4 size=255
❌ BuildTool.exe version 1.2.3.4 255

All command line arguments are passed to your Faktory and made available as a KeyValuePair accessible via Options. All values are mapped to a string.

var version = Options['version'];
var size = Convert.ToInt32(Options['size']);

Required Options

You can make some options required using the Requires() method. The following example marks "version" and "size" as required parameters and will result in an error if either is not provided during execution.

protected override void RunBuild()
{
    .Requires("version", "size")            
    .Run(Clean)
    .Then(Build)
    .Execute();
}

Configuring your Faktory

If you need to perform any kind of configuration or option validation, you can do so by overriding the Configure() method. This is useful to set up environment for example to determine if you're running under CI or not.

This example validates the passed options and uses the Fail() method to instantly fail the build. Take care to use case-insensitive string comparisons if needed.

This example also sets the MSBuildPath (as of version 1 it must be set manually) using the Config() method.

protected override void Configure()
{
    // Validate options
    if (new[] { "DEBUG", "RELEASE", }.Contains(Options["type"]) == false)
    {
        Fail("Option 'type' must be one of ['DEBUG', 'RELEASE']");
    }

    // Set the MSBuildPath
    Config.Set("MSBuildPath", @"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\MSBuild.exe");
}

More Info

Check out the https://github.com/Iddeal/faktory/wiki for more information.

Product Compatible and additional computed target framework versions.
.NET Framework net481 is compatible. 
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
1.0.0.7 143 1/22/2026
1.0.0.6 205 10/31/2025
1.0.0.5 159 1/20/2025
1.0.0.4 194 5/6/2024
1.0.0.3 175 5/6/2024
1.0.0.2 150 5/3/2024
1.0.0.1 177 5/2/2024
1.0.0 163 5/2/2024