在以下位置构建 x86 和 x64 [英] Build both x86 and x64 at

查看:34
本文介绍了在以下位置构建 x86 和 x64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要以两种配置构建一些应用程序:x86 和 x64(每个配置都引用了一些 32 位和 64 位版本的 dll).我想在一段时间内构建(一个构建),因此我想要有两个文件夹,即:1) sln_dir/x86/2) sln_dir/x64/

I need to build some application in two configurations: x86 and x64 (each config has reference on some dll, which is in 32 and 64 bit versions). I want to build in some time(one build) and as result i want to have two folders,i.e.: 1) sln_dir/x86/ 2) sln_dir/x64/

此外,x86 包含 32 位 dll,x64 包含 64 位 dll.有可能吗?如果有可能怎么办?谢谢!

Also x86 contains 32 bit dll and x64 contains 64 bit dll. Is it possible?And if it is possible how? Thanks!

推荐答案

好吧,我会添加新的项目配置,并为每个配置设置构建类型,以及输出目录.因此,您可能有Debug x86"和Debug x64"项目配置,例如输出目录为binDebugX86"和binDebugX64".

Well, I'd add new project configurations, and set the build type for each configuration, along with the output directory. So you might have "Debug x86" and "Debug x64" project configurations, with output directories of "binDebugX86" and "binDebugX64" for example.

这是一个甚至可以在 Visual Studio 中完成的更改,不像我犯下的大多数项目文件黑客:)

That's a change that can even be done within Visual Studio, unlike most of the project file hacks I perpetrate :)

这不会通过按一次构建项目"按钮来构建配置,但是:

That won't build configurations with a single "build project" button press, but:

  • 您可以为一种配置添加构建后步骤以构建另一种配置
  • 如果这仅在您构建 Wix 安装程序时相关,我只需编写脚本以首先构建两个配置

您应该查看的另一个 Visual Studio 功能是批量构建" 选项.不幸的是,似乎没有一种保存批量构建的方法可以轻松地多次执行它:(

Another Visual Studio feature you should look at is the "Batch Build" option. Unfortunately it doesn't look like there's a way of saving a batch build to perform it multiple times easily :(

这篇关于在以下位置构建 x86 和 x64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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