且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

一个项目在VS2010中具有多个构建配置?

更新时间:2022-12-08 15:35:55

创建32位版本和64位版本。
这将使您可以将它们放在不同的文件夹中。

Create a 32 bit build and 64 bit build. This will allow you to have them put in different folders.

右键单击解决方案,选择配置管理器
在活动解决方案中配置选择新
称其为32位构建
在CPU下拉列表中选择32位选项。

Right click on the solution, choose "Configuration Manager" In the Active Solution Configuration choose "new" Call it 32-Bit Build Pick the 32 bit option in the CPU dropdown.

重复并命名为64-

现在,当您进行构建时,它将转到C:\Development\ProjectName\Bin\32Bit Build\programname.exe。
或类似的64位元

Now when you do a build it will go to C:\Development\ProjectName\Bin\32-Bit Build\programname.exe or similarly for 64 bit