1

I have a psake task that I run from my build script to verify that the expected artifacts are created in the expected location. It seems to work when I run it from the command line, however it is returning an error code of "-1" when the assert passes or fails. What does exit code -1 mean and why wouldn't I get an exit code of 0 when it passes the assertion?

task VerifyArtifacts {
    Assert (Test-Path $package_file) "$package_file could not be found"
}

Command to execute:

psake .\default.ps1 VerifyArtifacts
Adi Inbar
  • 12,097
  • 13
  • 56
  • 69
matt
  • 103
  • 1
  • 7

0 Answers0