How can I use a single Visual Studio solution to build both x86 and x64 at the same time?

前端 未结 8 1843
我寻月下人不归
我寻月下人不归 2020-12-12 17:06

I\'ve got an x86 Visual Studio solution with many project files in it. Some of the DLL files are designed to work as plug-ins to other applications on a user\'s system.

8条回答
  •  北荒
    北荒 (楼主)
    2020-12-12 17:45

    Perhaps I've missed the point of this discussion.

    Using Visual Studio, go to menu BuildConfiguration Manager. In the Active Solution Platform drop down, select "New...", and a New Solution Platform dialog appears. Select x64 and accept the default Copy From. Close the dialog and the Configuration Manager.

    Now open menu BuildBatch Build. Check those configurations you want to build and build them. You will find the x64 build executables separate from the Win32 executable files.

    You can verify that these are what was intended by right clicking on the executable files, selecting Properties, and select the Compatibility tab. In the dropdown window you can check to see what operating systems the executable file can be run in.

    Obviously, there may be some other tweaking you might have to do to get all the output files in their proper places, but this method seem somewhat simpler than fooling with build than those described above.

提交回复
热议问题