Allow to skip the post build script

This commit is contained in:
lukeIam committed 2018-04-30 16:30:41 +02:00
1 parent 3ac9217759
commit 77fa981751
1 file changed
+6
+6
View File
@@ -3,6 +3,12 @@ param(
[String]$ProjectDir
)
if($Env:VOCALUXE_SKIP_POSTBUILD)
{
Write-Host "Skipping post build script (as requested)"
exit
}
(Get-Content -Encoding UTF8 "$($ProjectDir)Properties\AssemblyInfo.cs") `
| Foreach-Object {$_ -replace '(?<=AssemblyInformationalVersion\(\").*(?=\")', 'GITVERSION'} `
| Foreach-Object {$_ -replace '(?<=(AssemblyVersion|AssemblyFileVersion)\(\").*(?=\")', 'SHORTVERSION'} `