From 4d2223160b22a5d7361313c18c61246b07ae87b3 Mon Sep 17 00:00:00 2001 From: Alessandro Giorgetti Date: Mon, 29 Sep 2025 09:08:15 +0200 Subject: [PATCH] AppVeyor: Refine build process and GitVersion handling - Added cleanup step to reset assemblyinfo modifications. - Updated GitVersion command to prevent unintended increments. - Introduced parameters to stay on the current commit. - Added a note to address tag handling in GitVersion. - Removed the `after_build` section as it is no longer needed. --- appveyor.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 114e565..d7790b3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -41,7 +41,17 @@ before_build: gitversion /l console /output buildserver /updateassemblyinfo - gitversion ".\dependencies\NEventStore" /updateassemblyinfo /l console + + # Cleanup of assemblyinfo modifications + + git -C dependencies/NEventStore reset --hard + + + # todo: fix the tag! + + # Attempt to stay on the current commit (it seem to increment on the current tag or select the higest tag with the same major version, have to find a way to avoid it and stick on the tag in the current commit) + + gitversion ".\dependencies\NEventStore" /nofetch /nonormalize /nocache /updateassemblyinfo /l console /overrideconfig increment=None /overrideconfig commit-message-incrementing=Disabled build: project: src\NEventStore.Persistence.Sql.Core.sln verbosity: minimal