From 37da24ccf5c62fe3b17fccfec178f22f577c0cfd Mon Sep 17 00:00:00 2001 From: Riccardo De Agostini Date: Thu, 9 Nov 2023 05:23:44 +0100 Subject: [PATCH] Adjust AssemblyInformationalVersion after NBGV: no metadata in public versions --- CHANGELOG.md | 3 +++ .../NerdbankGitVersioning/Module.Core.targets | 21 +++++++++++++++++++ .../NerdbankGitVersioning/Module.targets | 10 ++------- 3 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 src/Buildvana.Sdk/Modules/NerdbankGitVersioning/Module.Core.targets diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b1fa5c..e74ff74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changes to existing features +- When using NerdBack.GitVersioning, the value of `AssemblyInformationalVersion` is now changed to not include metadata (Git commit SHA) when building a public version (i.e. from `main` or other branches identified in `version.json`). +This change also affects the default names of zipped publish folders and InnoSetup-generated setup programs, as they use `AssemblyInformationalVersion` as a suffix. + ### Bugs fixed in this release ### Known problems introduced by this release diff --git a/src/Buildvana.Sdk/Modules/NerdbankGitVersioning/Module.Core.targets b/src/Buildvana.Sdk/Modules/NerdbankGitVersioning/Module.Core.targets new file mode 100644 index 0000000..e15d824 --- /dev/null +++ b/src/Buildvana.Sdk/Modules/NerdbankGitVersioning/Module.Core.targets @@ -0,0 +1,21 @@ + + + + + + + + + + + $(NpmPackageVersion) + + + + + diff --git a/src/Buildvana.Sdk/Modules/NerdbankGitVersioning/Module.targets b/src/Buildvana.Sdk/Modules/NerdbankGitVersioning/Module.targets index eb59a80..64a0dad 100644 --- a/src/Buildvana.Sdk/Modules/NerdbankGitVersioning/Module.targets +++ b/src/Buildvana.Sdk/Modules/NerdbankGitVersioning/Module.targets @@ -1,13 +1,7 @@ - - - - +