Created
November 10, 2019 13:05
-
-
Save tahir-hassan/dfad266cbcdf5dc72436ec71b9ad18a5 to your computer and use it in GitHub Desktop.
"Pulling release files"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param() | |
$projectPath = "C:\_code\Clock\Clock"; | |
$debugDir = "$projectPath\bin\Debug"; | |
$releaseDir = "$projectPath\bin\Release"; | |
$debugClockExe = Get-Item $debugDir\Clock.exe; | |
$releaseClockExe = Get-Item $releaseDir\Clock.exe; | |
if ($releaseClockExe.LastWriteTime -gt $debugClockExe.LastWriteTime) { | |
Copy-Item $releaseDir\Clock.* $PSScriptRoot | |
} | |
else { | |
throw "debug compile time is greater - compile in Release mode and re-run this script" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment