From c702263770afd4ceaed41f56e0cc69a2a5f814fd Mon Sep 17 00:00:00 2001 From: erik Date: Sat, 28 Feb 2026 13:24:07 +0000 Subject: [PATCH] feat: auto-generate CalVer version from build date Replace hardcoded AssemblyVersion/AssemblyFileVersion with a CalVer scheme (YYYY.M.D.HHmm) generated at build time via an MSBuild target that writes a CalVer.cs file into obj/ before compilation. Co-Authored-By: Claude Opus 4.6 --- MosswartMassacre/MosswartMassacre.csproj | 12 ++++++++++++ MosswartMassacre/Properties/AssemblyInfo.cs | 8 +------- .../bin/Release/MosswartMassacre.dll | Bin 1677824 -> 1677824 bytes 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/MosswartMassacre/MosswartMassacre.csproj b/MosswartMassacre/MosswartMassacre.csproj index 745cfa9..93f65af 100644 --- a/MosswartMassacre/MosswartMassacre.csproj +++ b/MosswartMassacre/MosswartMassacre.csproj @@ -388,4 +388,16 @@ + + + + $([System.DateTime]::UtcNow.ToString("yyyy.M.d.HHmm")) + $(IntermediateOutputPath)CalVer.cs + + + + + + \ No newline at end of file diff --git a/MosswartMassacre/Properties/AssemblyInfo.cs b/MosswartMassacre/Properties/AssemblyInfo.cs index cad7b23..216b745 100644 --- a/MosswartMassacre/Properties/AssemblyInfo.cs +++ b/MosswartMassacre/Properties/AssemblyInfo.cs @@ -21,10 +21,4 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("9b6a07e1-ae78-47f4-b09c-174f6a27d7a3")] -// Version information for an assembly consists of the following four values: -// Major Version -// Minor Version -// Build Number -// Revision -[assembly: AssemblyVersion("4.0.0.2")] -[assembly: AssemblyFileVersion("4.0.0.2")] \ No newline at end of file +// Version is auto-generated at build time (CalVer: YYYY.M.D.HHmm) \ No newline at end of file diff --git a/MosswartMassacre/bin/Release/MosswartMassacre.dll b/MosswartMassacre/bin/Release/MosswartMassacre.dll index 57cb89b6aba99f50a88b19762980591a5f933671..556ecc3e077e0a21b891651b2d3334ed15a07ab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