Merge branch 'release/ModifyBaseObj_02'
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user