From 843f7d628b8250574200868eeab6a29cffa96c12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20G=C3=B6pel?= Date: Sun, 23 Aug 2026 20:10:07 +0800 Subject: [PATCH] chore: hold the package version in one place MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The per-project fields were dead and misleading. CI publishes with -p:Version=${GITHUB_REF_NAME#v}, so the git tag has always been the real version and these values never reached NuGet — they only told anyone reading the csproj, or packing locally, something untrue. They had drifted accordingly. Worst case was app-foundation: six copies, five reading 1.8.0 and MailService reading 1.9.0, against a published 2.1.0 — evidence that per-project versioning was once intended and died quietly when CI started packing everything from one tag. Moved to the shared Directory.Build.props, which every package here already inherits, and removed the per-project copies. One line per repo instead of one per project, seeded with the version actually published. Behaviour is unchanged where it matters: -p:Version still overrides, so CI packs exactly as before. A local pack now reports the released version rather than a stale one. --- Directory.Build.props | 6 ++++++ src/AndreGoepel.Core/AndreGoepel.Core.csproj | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index 793bc08..5a224a2 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,6 +2,12 @@ André Göpel © André Göpel + + 1.0.2 https://github.com/andregoepel/core git https://github.com/andregoepel/core diff --git a/src/AndreGoepel.Core/AndreGoepel.Core.csproj b/src/AndreGoepel.Core/AndreGoepel.Core.csproj index f571a20..9815097 100644 --- a/src/AndreGoepel.Core/AndreGoepel.Core.csproj +++ b/src/AndreGoepel.Core/AndreGoepel.Core.csproj @@ -7,7 +7,6 @@ AndreGoepel.Core - 1.0.0 Zero-dependency shared primitives for the AndreGoepel .NET ecosystem, starting with Result<T>. result;primitives;abstractions README.md