【发布时间】:2019-02-25 19:25:24
【问题描述】:
我从 powershell 脚本运行dotnet,当我指定一些未知的开关时,powershell 没有检测到任何错误。输出到标准输入,而我希望它是标准错误。
它是 dotnet 还是 powershell 端的设置?如果出现错误,我需要脚本失败。
dotnet pack -dsfsdf Microsoft (R) Build Engine 版本 .NET Core 的 15.8.166+gd4e8d81a88 版权所有 (C) Microsoft Corporation。保留所有权利。
MSBUILD:错误 MSB1001:未知开关。开关:-dsfsdf
对于切换语法,输入“MSBuild /help”
【问题讨论】:
标签: powershell dotnet-cli