Merge branch 'release/ModifyBaseObj_02'

This commit is contained in:
Samuele Locatelli
2025-10-02 12:33:30 +02:00
2 changed files with 20 additions and 2 deletions
+5 -2
View File
@@ -1,11 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>2.7.9.2909</Version>
<Version>2.7.10.0212</Version>
<Authors>Annamaria Sassi</Authors>
<Company>Egalware</Company>
<Description>Classi di base per gestione sistemi Window x Egw.*</Description>
</PropertyGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="powershell.exe -ExecutionPolicy Unrestricted -NoProfile -NonInteractive -File $(ProjectDir)\post-build.ps1 -ProjectDir $(ProjectDir) -ProjectPath $(ProjectPath)" />
</Target>
</Project>
+15
View File
@@ -0,0 +1,15 @@
param([string]$ProjectDir, [string]$ProjectPath);
$MajMin="2.7."
$currentDate = get-date -format MM;
$currentTime = get-date -format ddHH;
$find = "<Version>(.|\n)*?</Version>";
$currRelNum=$MajMin + $currentDate + "." + $currentTime
$replace = "<Version>" + $currRelNum + "</Version>";
$csproj = Get-Content $ProjectPath
$csprojUpdated = $csproj -replace $find, $replace
Write-Output "Update csproj | $currRelNum"
Set-Content -Path $ProjectPath -Value $csprojUpdated