【问题标题】:MsBuild: Generate binaries instead of zip fileMsBuild:生成二进制文件而不是 zip 文件
【发布时间】:2018-02-23 03:50:35
【问题描述】:

我想构建一个解决方案并将生成的工件(二进制文件)放在一个文件夹中,而不是将它们打包在一个 zip 文件中。我该怎么做?

【问题讨论】:

    标签: visual-studio msbuild


    【解决方案1】:

    您可以尝试从 Visual Studio 将它们发布到文件系统

    或者如果你想使用控制台,你可以尝试使用这个

    Using MSBuild, how do I build an MVC4 solution from the command line (applying Web.config transformations in the process) and output to a folder?

    【讨论】:

      【解决方案2】:

      我发现工作只是提供 OutputPath

      msbuild.exe <solution.sln> /p:OutputPath="<target_directory>"
      

      请注意 targe_directory 不应以 \ 结尾。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2022-01-16
        • 2011-01-09
        • 1970-01-01
        • 2019-12-11
        • 1970-01-01
        • 2011-11-30
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多