From 79602edeb0745b1a789e9a47e7db03758cc832fd Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 2 Oct 2025 12:33:13 +0200 Subject: [PATCH] Fix versione proj --- Egw.Window.Data/Egw.Window.Data.csproj | 7 +++++-- Egw.Window.Data/post-build.ps1 | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 Egw.Window.Data/post-build.ps1 diff --git a/Egw.Window.Data/Egw.Window.Data.csproj b/Egw.Window.Data/Egw.Window.Data.csproj index 49b2943..658d035 100644 --- a/Egw.Window.Data/Egw.Window.Data.csproj +++ b/Egw.Window.Data/Egw.Window.Data.csproj @@ -1,11 +1,14 @@ - + netstandard2.0 - 2.7.9.2909 + 2.7.10.0212 Annamaria Sassi Egalware Classi di base per gestione sistemi Window x Egw.* + + + diff --git a/Egw.Window.Data/post-build.ps1 b/Egw.Window.Data/post-build.ps1 new file mode 100644 index 0000000..9eee7f5 --- /dev/null +++ b/Egw.Window.Data/post-build.ps1 @@ -0,0 +1,15 @@ +param([string]$ProjectDir, [string]$ProjectPath); + + +$MajMin="2.7." +$currentDate = get-date -format MM; +$currentTime = get-date -format ddHH; +$find = "(.|\n)*?"; +$currRelNum=$MajMin + $currentDate + "." + $currentTime +$replace = "" + $currRelNum + ""; +$csproj = Get-Content $ProjectPath +$csprojUpdated = $csproj -replace $find, $replace + +Write-Output "Update csproj | $currRelNum" + +Set-Content -Path $ProjectPath -Value $csprojUpdated \ No newline at end of file