Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile both x86 and x64 in one configuration?

Greetings all,

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?

like image 511
Paul Accisano Avatar asked Sep 03 '10 00:09

Paul Accisano


1 Answers

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.

like image 134
Paul Accisano Avatar answered Nov 02 '22 23:11

Paul Accisano