From a3eb055b85ede510e32e5e9f4d16522d26766ead Mon Sep 17 00:00:00 2001 From: Dennis Doomen Date: Sat, 7 Nov 2026 07:18:19 +0100 Subject: [PATCH 1/2] Migrate the build from Nuke 9.0.4 to Fallout 10.5.0-rc.4 Replace the Nuke packages and namespaces with their Fallout equivalents, move the .nuke folder to .fallout, retarget the build project to net10.0 (required by Fallout), and refresh the build scripts. Co-Authored-By: Claude Sonnet 5.5 --- .fallout/.gitignore | 1 + {.nuke => .fallout}/build.schema.json | 23 +++++++++++++------ {.nuke => .fallout}/parameters.json | 0 .github/workflows/build.yml | 2 +- README.md | 2 +- build.ps1 | 2 +- build.sh | 2 +- build/Build.cs | 33 ++++++++++++--------------- build/Configuration.cs | 2 +- build/_build.csproj | 12 +++++----- 10 files changed, 42 insertions(+), 37 deletions(-) create mode 100644 .fallout/.gitignore rename {.nuke => .fallout}/build.schema.json (82%) rename {.nuke => .fallout}/parameters.json (100%) diff --git a/.fallout/.gitignore b/.fallout/.gitignore new file mode 100644 index 0000000..36445e5 --- /dev/null +++ b/.fallout/.gitignore @@ -0,0 +1 @@ +/temp diff --git a/.nuke/build.schema.json b/.fallout/build.schema.json similarity index 82% rename from .nuke/build.schema.json rename to .fallout/build.schema.json index 7de700c..63662f7 100644 --- a/.nuke/build.schema.json +++ b/.fallout/build.schema.json @@ -29,6 +29,7 @@ "Compile", "Default", "Pack", + "PreparePackageReadme", "Push", "Restore", "RunTests" @@ -41,10 +42,11 @@ "Verbose", "Normal", "Minimal", - "Quiet" + "Quiet", + "Information" ] }, - "NukeBuild": { + "FalloutBuild": { "properties": { "Continue": { "type": "boolean", @@ -60,7 +62,7 @@ }, "NoLogo": { "type": "boolean", - "description": "Disables displaying the NUKE logo" + "description": "Disables displaying the Fallout logo" }, "Partition": { "type": "string", @@ -98,6 +100,13 @@ "Verbosity": { "description": "Logging verbosity during build execution. Default is 'Normal'", "$ref": "#/definitions/Verbosity" + }, + "BuildProjectFile": { + "type": [ + "null", + "string" + ], + "description": "Path to the build project (.csproj) relative to the repository root. Defaults to 'build/_build.csproj' when unset. Read by the Fallout global tool's in-tool runner." } } } @@ -107,16 +116,16 @@ "properties": { "Configuration": { "type": "string", - "description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)", "enum": [ "Debug", "Release" - ] + ], + "description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)" }, "NuGetApiKey": { "type": "string", "description": "The key to push to Nuget", - "default": "Secrets must be entered via 'nuke :secrets [profile]'" + "default": "Secrets must be entered via 'fallout :secrets [profile]'" }, "Solution": { "type": "string", @@ -125,7 +134,7 @@ } }, { - "$ref": "#/definitions/NukeBuild" + "$ref": "#/definitions/FalloutBuild" } ] } diff --git a/.nuke/parameters.json b/.fallout/parameters.json similarity index 100% rename from .nuke/parameters.json rename to .fallout/parameters.json diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1ddf975..aec147f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,7 +28,7 @@ jobs: 3.0.x 6.0.x - - name: Run NUKE + - name: Run Fallout run: ./build.ps1 env: NuGetApiKey: ${{ secrets.NUGETAPIKEY }} diff --git a/README.md b/README.md index 7149981..f193ba2 100644 --- a/README.md +++ b/README.md @@ -165,7 +165,7 @@ This library uses [Semantic Versioning](https://semver.org/) to give meaning to ## Credits This library wouldn't have been possible without the following tools, packages and companies: -* [Nuke](https://nuke.build/) - Smart automation for DevOps teams and CI/CD pipelines +* [Fallout](https://github.com/Fallout-build/Fallout) - Build automation for C# and .NET, the successor to Nuke * [Rider](https://www.jetbrains.com/rider/) - The world's most loved .NET and game dev IDE * [xUnit](https://xunit.net/) - Community-focused unit testing tool for .NET. * [Coverlet](https://github.com/coverlet-coverage/coverlet) - Cross platform code coverage for .NET diff --git a/build.ps1 b/build.ps1 index 4634dc0..27eeef1 100644 --- a/build.ps1 +++ b/build.ps1 @@ -14,7 +14,7 @@ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent ########################################################################### $BuildProjectFile = "$PSScriptRoot\build\_build.csproj" -$TempDirectory = "$PSScriptRoot\\.nuke\temp" +$TempDirectory = "$PSScriptRoot\\.fallout\temp" $DotNetGlobalFile = "$PSScriptRoot\\global.json" $DotNetInstallUrl = "https://dot.net/v1/dotnet-install.ps1" diff --git a/build.sh b/build.sh index fdff0c6..a3dad0d 100755 --- a/build.sh +++ b/build.sh @@ -10,7 +10,7 @@ SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd) ########################################################################### BUILD_PROJECT_FILE="$SCRIPT_DIR/build/_build.csproj" -TEMP_DIRECTORY="$SCRIPT_DIR//.nuke/temp" +TEMP_DIRECTORY="$SCRIPT_DIR//.fallout/temp" DOTNET_GLOBAL_FILE="$SCRIPT_DIR//global.json" DOTNET_INSTALL_URL="https://dot.net/v1/dotnet-install.sh" diff --git a/build/Build.cs b/build/Build.cs index 3f091dd..1654219 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -1,27 +1,22 @@ using System; using System.Linq; -using Nuke.Common; -using Nuke.Common.CI.GitHubActions; -using Nuke.Common.IO; -using Nuke.Common.ProjectModel; -using Nuke.Common.Tooling; -using Nuke.Common.Tools.DotNet; -using Nuke.Common.Tools.GitVersion; -using Nuke.Common.Tools.ReportGenerator; -using Nuke.Common.Utilities; -using Nuke.Common.Utilities.Collections; -using Nuke.Components; -using static Nuke.Common.Tools.DotNet.DotNetTasks; -using static Nuke.Common.Tools.ReportGenerator.ReportGeneratorTasks; +using Fallout.Common; +using Fallout.Common.CI.GitHubActions; +using Fallout.Common.IO; +using Fallout.Solutions; +using Fallout.Common.Tooling; +using Fallout.Common.Tools.DotNet; +using Fallout.Common.Tools.GitVersion; +using Fallout.Common.Tools.ReportGenerator; +using Fallout.Common.Utilities; +using Fallout.Common.Utilities.Collections; +using Fallout.Components; +using static Fallout.Common.Tools.DotNet.DotNetTasks; +using static Fallout.Common.Tools.ReportGenerator.ReportGeneratorTasks; using static Serilog.Log; -class Build : NukeBuild +class Build : FalloutBuild { - /// Support plugins are available for: - /// - JetBrains ReSharper https://nuke.build/resharper - /// - JetBrains Rider https://nuke.build/rider - /// - Microsoft VisualStudio https://nuke.build/visualstudio - /// - Microsoft VSCode https://nuke.build/vscode public static int Main() => Execute(x => x.Default); [Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")] diff --git a/build/Configuration.cs b/build/Configuration.cs index 78049f7..fe274ae 100644 --- a/build/Configuration.cs +++ b/build/Configuration.cs @@ -1,5 +1,5 @@ using System.ComponentModel; -using Nuke.Common.Tooling; +using Fallout.Common.Tooling; [TypeConverter(typeof(TypeConverter))] public class Configuration : Enumeration diff --git a/build/_build.csproj b/build/_build.csproj index a74658f..4a81996 100644 --- a/build/_build.csproj +++ b/build/_build.csproj @@ -2,18 +2,18 @@ Exe - net8.0 + net10.0 CS0649;CS0169;CA1050;CA1822;CA2211;IDE1006 - .. - .. - 1 + .. + .. + 1 false - - + + From 6bcc8332f67ef2ce5ce53628b116c10bec715500 Mon Sep 17 00:00:00 2001 From: Dennis Doomen Date: Sat, 7 Nov 2026 16:42:18 +0100 Subject: [PATCH 2/2] Bump Fallout to 10.5.0 Co-Authored-By: Claude Sonnet 5.5 --- build/_build.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/_build.csproj b/build/_build.csproj index 4a81996..28eb754 100644 --- a/build/_build.csproj +++ b/build/_build.csproj @@ -12,8 +12,8 @@ - - + +