From 9a07024fdd487b0cbc2054a8bf50cf2181937317 Mon Sep 17 00:00:00 2001 From: Meik Date: Wed, 1 Jul 2026 14:33:34 +0200 Subject: [PATCH] build: derive package version from assembly version --- F4SDM42WebApi/F4SD - M42WebApi.csproj | 1 - F4SDM42WebApi/M42SandboxedExtension.targets | 15 ++++++++++++--- SharedAssemblyInfo.cs | 4 ++-- docs/matrix42-26-1-extension-migration.md | 5 +++-- 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/F4SDM42WebApi/F4SD - M42WebApi.csproj b/F4SDM42WebApi/F4SD - M42WebApi.csproj index 2375f25..546cfef 100644 --- a/F4SDM42WebApi/F4SD - M42WebApi.csproj +++ b/F4SDM42WebApi/F4SD - M42WebApi.csproj @@ -13,7 +13,6 @@ false 6673a25d-33d6-4072-91d9-abed4be1a966 C4ITF4SD*.* - 1.4.0.39 true diff --git a/F4SDM42WebApi/M42SandboxedExtension.targets b/F4SDM42WebApi/M42SandboxedExtension.targets index c7ca7e1..4d1bc7d 100644 --- a/F4SDM42WebApi/M42SandboxedExtension.targets +++ b/F4SDM42WebApi/M42SandboxedExtension.targets @@ -78,13 +78,22 @@ - - + + + + + + <_M42PackageAssemblyVersion>@(_M42PackageAssemblyIdentity->'%(Version)') + + + + + diff --git a/SharedAssemblyInfo.cs b/SharedAssemblyInfo.cs index 6dbd71a..f42440a 100644 --- a/SharedAssemblyInfo.cs +++ b/SharedAssemblyInfo.cs @@ -5,5 +5,5 @@ [assembly: AssemblyCopyright("Copyright © 2026, Consulting4IT GmbH, Germany")] [assembly: AssemblyTrademark("")] -[assembly: AssemblyVersion("1.3.0.0")] -[assembly: AssemblyInformationalVersion("1.3.0.0")] \ No newline at end of file +[assembly: AssemblyVersion("1.4.0.0")] +[assembly: AssemblyInformationalVersion("1.4.0.0")] diff --git a/docs/matrix42-26-1-extension-migration.md b/docs/matrix42-26-1-extension-migration.md index a32a941..e0f0dce 100644 --- a/docs/matrix42-26-1-extension-migration.md +++ b/docs/matrix42-26-1-extension-migration.md @@ -26,11 +26,12 @@ Bewaehrte Projekt-Eigenschaften: false ... C4ITF4SD*.* -... true ``` -Das Package wird ueber `M42SandboxedExtension.targets` gebaut. Ein erfolgreicher Release-Build erzeugt: +Das Package wird ueber `M42SandboxedExtension.targets` gebaut. Die Paketversion wird automatisch aus der `AssemblyVersion` der gebauten WebApi-Assembly gelesen. In diesem Repo wird diese zentral in `SharedAssemblyInfo.cs` gepflegt. + +Ein erfolgreicher Release-Build erzeugt: ```text artifacts/ v/