Skip to content

fix(samples): build against source via ProjectReference (removes release race)#5

Merged
benmccallum merged 1 commit into
mainfrom
fix/ci-build-core-slnf
Jun 23, 2026
Merged

fix(samples): build against source via ProjectReference (removes release race)#5
benmccallum merged 1 commit into
mainfrom
fix/ci-build-core-slnf

Conversation

@benmccallum

@benmccallum benmccallum commented Jun 23, 2026

Copy link
Copy Markdown
Member

Problem

main CI has been red since the AutoGuru rename. The sample projects consume the library via PackageReference to the upstream EntityFrameworkCore.Triggered package id (not the fork's AutoGuru.* packages), pinned to the current major. So dotnet restore fails NU1102 — and because the build job restores the full .sln (which includes samples), the library was never actually compiled or tested in CI.

It's also an inherent release race: a brand-new version line can't be sample-built until it's published, but you'd want to validate before publishing.

Fix

Switch all four samples from PackageReference to ProjectReference against the in-repo src/ projects. Samples now build against current source on every commit — no published-package dependency, no race, and build-samples becomes a real gate again.

Trade-off: samples no longer exercise the packaged artifact (which, pointing at the wrong upstream id, they weren't doing anyway). A dedicated post-publish package smoke test could re-add that later if wanted.

No workflow changes — the root cause was the sample references, not the CI.

…lished package

The samples consumed EntityFrameworkCore.Triggered via PackageReference, which
(a) can't restore a new version line until it's published — a release race —
and (b) pointed at the upstream package id, not the fork's AutoGuru.* packages,
so they could never resolve the fork's versions regardless (red since the
rename). Switch all four samples to ProjectReference against the in-repo src
projects: they now build against current source every commit, no publish
dependency, no race. The `build` (full .sln) and `build-samples` jobs both go
green from source; release.yml is unaffected (already packs Core.slnf).
@benmccallum benmccallum force-pushed the fix/ci-build-core-slnf branch from c574a62 to 37af986 Compare June 23, 2026 06:24
@benmccallum benmccallum changed the title ci: build/test library via Core.slnf; make samples job non-blocking fix(samples): build against source via ProjectReference (removes release race) Jun 23, 2026
@benmccallum benmccallum merged commit 41b125f into main Jun 23, 2026
14 checks passed
@benmccallum benmccallum deleted the fix/ci-build-core-slnf branch June 23, 2026 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants