FIx generazione vers number
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
@@ -0,0 +1 @@
|
||||
0.8.
|
||||
@@ -0,0 +1 @@
|
||||
0.8.2307.2416
|
||||
@@ -0,0 +1,15 @@
|
||||
param([string]$ProjectDir, [string]$ProjectPath);
|
||||
|
||||
$MainVers="..\Resources\MainVers.txt"
|
||||
$FileVers="..\Resources\VersNum.txt"
|
||||
$MajMin=Get-Content $MainVers
|
||||
$currentDate = get-date -format yyMM;
|
||||
$currentTime = get-date -format ddHH;
|
||||
$find = "<Version>(.|\n)*?</Version>";
|
||||
$currRelNum=$MajMin + $currentDate +"." + $currentTime
|
||||
$replace = "<Version>" + $MajMin + $currentDate +"." + $currentTime + "</Version>";
|
||||
$csproj = Get-Content $ProjectPath
|
||||
$csprojUpdated = $csproj -replace $find, $replace
|
||||
|
||||
Set-Content -Path $ProjectPath -Value $csprojUpdated
|
||||
Set-Content -Path $FileVers -Value $currRelNum
|
||||
Reference in New Issue
Block a user