Add Nuke build project with Attach/Detach targets#38
Merged
jeremydmiller merged 1 commit intomainfrom May 1, 2026
Merged
Conversation
Mirrors the Marten Nuke build setup (~/code/marten/build/). Adds:
- build/build.csproj — Nuke build project (net10.0)
- build/build.cs — Build targets: Compile, Test, TestPolecat,
TestAspnetcore, TestEfCore, Pack, Docs, DocsBuild, PublishDocs,
RebuildDb, InitDb, Attach, Detach, etc.
- build/Configuration.cs — Debug/Release enumeration
- build.sh / build.cmd / build.ps1 — Wrapper scripts
- .nuke/parameters.json — Solution path
- .gitignore — Ignore .nuke/temp and results/
The Attach/Detach targets mirror Marten's:
Attach — Switches Polecat to use ProjectReferences pointing at
sibling repos (~/code/jasperfx, ~/code/weasel) and removes
the corresponding NuGet PackageReferences. Adds the linked
projects to the polecat.slnx under an "Attached" folder.
Detach — Inverse: removes ProjectReferences, removes attached
projects from the solution, and restores the NuGet
PackageReferences (--prerelease) for JasperFx, JasperFx.Events,
Weasel.SqlServer, Weasel.EntityFrameworkCore.
Used for cross-repo development when working on JasperFx or Weasel
changes alongside Polecat.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Mirrors the Marten Nuke build setup at
~/code/marten/build/.Build infrastructure
build/build.csproj— Nuke build project (net10.0)build/build.cs— All targetsbuild/Configuration.cs— Debug/Release enumerationbuild.sh/build.cmd/build.ps1— Wrapper scripts.nuke/parameters.json— Solution path.gitignoreandDirectory.Packages.props(addedNuke.Common 9.0.4)Available targets
Compile,Restore,Test,TestPolecat,TestAspnetcore,TestEfCorePack— packs all 4 NuGet packages (Polecat, AspNetCore, CodeGeneration, EntityFrameworkCore)Docs,DocsBuild,PublishDocs,InstallMdSnippetsRebuildDb,InitDbAttach/Detach— see belowAttach / Detach
Cross-repo dev workflow that mirrors Marten exactly:
./build.sh --target AttachJasperFx,JasperFx.Events,Weasel.Core,Weasel.SqlServer,Weasel.EntityFrameworkCorefrom sibling repos (../jasperfx,../weasel) topolecat.slnxunder anAttachedsolution folderPackageReferences fromPolecat,Polecat.EntityFrameworkCore, andPolecat.EntityFrameworkCore.TestsProjectReferences to those sibling projects in their place./build.sh --target DetachProjectReferencespolecat.slnx--prereleaseNuGetPackageReferencesThis makes it trivial to develop JasperFx or Weasel changes alongside Polecat without manually editing csproj files.
Test plan
dotnet build build/build.csprojsucceeds./build.sh --target Helplists all targets includingAttachandDetachAttachinvokes the rightdotnet sln add/dotnet remove packagesequence (verified via dry run)🤖 Generated with Claude Code