有没有办法告诉MSBuild在哪里放置生成的.exe? [英] Is there a way to tell MSBuild where to put resulting .exe?

查看:391
本文介绍了有没有办法告诉MSBuild在哪里放置生成的.exe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过x64->发布是一个但很简单,有没有办法让MSBuild将生成的.exe放到project.s根文件夹中?

Going through x64->Release is a but tediout, is there a way to make MSBuild put resulting .exe into project.s root folder?

推荐答案

您好Eugene Hardesky,

Hi Eugene Hardesky,

感谢您在此发布。

>>> 是否有告诉MSBuild在哪里放置生成的.exe?

>>>Is there a way to tell MSBuild where to put resulting .exe?

如果您在C#项目中,可以在Visual Studio上更改输出路径  属性 - > 构建 - > 输出路径,
单击浏览按钮选择项目文件夹的路径。

If you are in the C# project, you can change the output path on Visual Studio Properties->Build->Output path, click Browse button select path to project folder.

从MSBuild命令行构建时,可以使用参数  / p:OutputPath = 来重写输出路径。

When you build from MSBuild command line, you can use the argument /p:OutputPath= to rewrite the output path.


这篇关于有没有办法告诉MSBuild在哪里放置生成的.exe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆