11 lines
406 B
PowerShell
11 lines
406 B
PowerShell
param([string]$ProjectDir, [string]$ProjectPath);
|
|
|
|
$MajMin="2.0."
|
|
$currentDate = get-date -format yyMM;
|
|
$currentTime = get-date -format ddHH;
|
|
$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 |