Files
mapo-core/MP.Stats/post-build.ps1
T
2021-05-17 13:35:20 +02:00

11 lines
406 B
PowerShell

param([string]$ProjectDir, [string]$ProjectPath);
$MajMin="1.0."
$currentDate = get-date -format yyMM;
$currentTime = get-date -format HHmm;
$find = "<Version>(.|\n)*?</Version>";
$replace = "<Version>" + $MajMin + $currentDate +"." + $currentTime + "</Version>";
$csproj = Get-Content $ProjectPath
$csprojUpdated = $csproj -replace $find, $replace
Set-Content -Path $ProjectPath -Value $csprojUpdated