【问题标题】:how can I use xbuild to build release binary如何使用 xbuild 构建发布二进制文件
【发布时间】:2013-07-13 09:06:15
【问题描述】:

当我使用 xbuild 时,它总是使用 debug 作为目标,如何让它使用 release?

例如,我希望像

xbuild --release

但这不起作用

【问题讨论】:

    标签: c# xbuild


    【解决方案1】:

    看起来你应该可以这样做:

    xbuild /p:Configuration=Release MySolution.sln

    查看MSBuild reference 了解其他选项 - 我不确定 xbuild 是否 100% 符合 MSBuild 支持的要求,但它可能对您有所帮助。

    【讨论】:

    • 哇。别名 xbuild-rel="xbuild /p:Configuration=Release" 是我需要的
    猜你喜欢
    • 2023-03-04
    • 2018-10-13
    • 2015-06-18
    • 2016-12-22
    • 1970-01-01
    • 1970-01-01
    • 2016-08-04
    • 2011-08-01
    • 1970-01-01
    相关资源
    最近更新 更多