Skip to content

Instantly share code, notes, and snippets.

@turibbio
Created July 21, 2015 19:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turibbio/8d87699e848abf88b3f6 to your computer and use it in GitHub Desktop.
Save turibbio/8d87699e848abf88b3f6 to your computer and use it in GitHub Desktop.
Post Build Event
param($ProjectDir)
$TargertDir = $env:LOCALAPPDATA + "\Totem"
$OrigineRisorse = $ProjectDir + "\Resources"
$OrigineTemi = $ProjectDir + "\Themes"
$DestRisorse = $TargertDir + "\Resources"
$DestTemi = $TargertDir + "\Themes"
$OrigineLang = $ProjectDir + "\Languages"
$DestLang = $TargertDir + "\Languages"
Write-Output "Esecuzione azioni Post Build"
Write-Output "Pulizia delle cartelle nella destinazione in corso"
Remove-Item -Path $DestRisorse -Recurse -Force | where { Test-Path -Path $DestRisorse }
Remove-Item -Path $DestTemi -Recurse -Force | where { Test-Path -Path $DestTemi }
Remove-Item -Path $DestLang -Recurse -Force | where { Test-Path -Path $DestLang }
Write-Output "Avvio copia cartelle custom"
Move-Item -Path $OrigineRisorse -Destination $DestRisorse -Force
Write-Output ($OrigineRisorse + " copiato in " + $DestRisorse)
Move-Item -Path $OrigineTemi -Destination $DestTemi -Force
Write-Output ($OrigineTemi + " copiato in " + $DestTemi)
Move-Item -Path $OrigineLang -Destination $DestLang -Force
Write-Output ($OrigineLang + " copiato in " + $DestLang)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment