1
38
检查的值
btw不需要使用cmd/c。直接调用msbuild.exe即可。我们一直在PowerShell构建脚本中这样做。 |
2
10
要仅检查成功/失败,请使用自动变量
PS> help about_Automatic_Variables $? Contains the execution status of the last operation. It contains TRUE if the last operation succeeded and FALSE if it failed. 例如: msbuild if (! $?) { throw "msbuild failed" } |