开发者

Setting ExitCode in self-hosted F# script

开发者 https://www.devze.com 2023-02-15 04:14 出处:网络
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?

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开发者_StackOverflow中文版 regards, Steffen


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

0

精彩评论

暂无评论...
验证码 换一张
取 消