编译x86和x64的在一个配置? [英] Compile both x86 and x64 in one configuration?
问题描述
大家好,
我在VS 2010中的C#解决方案的工作现在,因为我目标值为anycpu,当我想建立我的安装程序,我可以选择拍摄模式,并击筑,一切都为我做的。然而,pretty的很快,我将不得不一个C ++ DLL项目添加到解决方案来完成一些低层次的东西。为了避免两个不同的下载链接,x86和x64,我想包括在我的安装两个版本。但是,这将是很烦人,如果我必须对x86和x64分别进行配置。我要建一个,那么其他的,然后包装起来。有一些方法可以让我得到的Visual Studio编译无论是x86和x64的C ++项目的建立,作为发行模式部分?
I'm working with a C# solution in VS 2010. Right now, since I'm targeting AnyCPU, when I want to build my installer, I can just select Release mode and hit build and everything is done for me. However, pretty soon I'm going to have to add a C++ DLL project to the solution to accomplish some low-level stuff. To avoid having two different download links for x86 and x64, I'd like to include both builds in my installer. But, it will be very annoying if I have to have separate configurations for x86 and x64. I'll have to build one, then the other, then package it up. Is there some way I can get Visual Studio to compile both the x86 and x64 builds of the C++ project as part of Release mode?
推荐答案
嗯,我找到了解决办法。只要两个项目,一个是x86版本,一个是64位版本,引用相同的源文件。这是丑陋的,但它的作品。
Well, I found a solution. Just make two projects, one for x86 build and one for x64 build, referencing the same source files. It's ugly, but it works.
这篇关于编译x86和x64的在一个配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!