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

前端 未结 8 1836
我寻月下人不归
我寻月下人不归 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:53

    I think the best way of doing this is to invoke MSBuild from the command line. It shouldn't need editing of MSBuild files. Just run

    msbuild myproj.sln /p:Configuration="Debug|Win32"
    msbuild myproj.sln /p:Configuration="Debug|x64"
    

    I assume that if a developer is using Visual Studio then they'll only be generating the DLL files so they can debug with them, and that you have a separate build process if you're actually deploying the DLL files.

提交回复
热议问题