PSake (v2.0) ビルド スクリプトをまとめましたが、MSBuild の呼び出しが失敗した$psake.build_success
としても、スクリプトはプロパティを設定しています。MSBuild の呼び出しが失敗したときにプロパティが正しく返されるtrue
ように、スクリプトを変更する方法を教えてもらえますか?$psake.build_success
false
私の PSake ビルド スクリプトは次のとおりです。
properties {
$solutionFile = 'SOLUTION_FILE'
$buildSuccessfulMessage = 'Solution Successfully Built!'
$buildFailureMessage = 'Solution Failed to Build!'
$cleanMessage = 'Executed Clean!'
}
task default -depends BuildSolution
task BuildSolution
{
msbuild $solutionFile /t:Clean,Build
if ($psake.build_success)
{
$buildSuccessfulMessage
}
else
{
$buildFailureMessage
}
}