Allow to skip the post build script
This commit is contained in:
1 parent
3ac9217759
commit
77fa981751
1 file changed
+6
@@ -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'} `
|
||||
|
||||
Reference in new issue
Block a user