Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting ExitCode in self-hosted F# script

I am hosting the FSI.exe in my build tool ("FAKE - F# Make") and I need to set the ExitCode for FSI.exe from inside my fsx-script. Is this possible?

At the moment I am raising errors in the F# build script and this sets the exit code, but it also displays nasty exceptions and stackstraces in the build log.

Thanks in advance and best regards, Steffen

like image 247
forki23 Avatar asked Mar 05 '11 15:03

forki23


1 Answers

Thanks to Alexander I now know the answer. I have to call exit myExitCode.

like image 56
forki23 Avatar answered Oct 11 '22 06:10

forki23