How can I build Debug and Release at once?

后端 未结 4 709
花落未央
花落未央 2021-02-18 21:08

When I select menu BuildBuild or anything else, it only builds the currently selected configuration (Debug or Release). How can I make it build, for ex

相关标签:
4条回答
  • 2021-02-18 21:18

    You can do this with "Batch Build", although it's not available in the Express version.

    Anyway, you don't want to be building from the GUI anyway. You should be using MSBuild or something of that nature to automate your build process.

    0 讨论(0)
  • 2021-02-18 21:21

    If you want to use the build button and not build it via menus, you can use the Post-build Command function (or pre-build - it is up to you).

    You can parametrize the commands using project properties via macros. It can be useful for auto-copying of final assemblies to central location, etc.

    0 讨论(0)
  • 2021-02-18 21:23

    In the Visual Studio GUI, go to the menu

    BuildBatch Build

    This will pop up a window with all the possible combinations of projects and their configurations. Select all the items you want to build together and click the Build button on the right side of the window.

    That's it.

    There is also a button to rebuild a group of configurations instead of build (which is an incremental build).

    There is also an option to select/deselect all configurations/projects to build/rebuild.

    0 讨论(0)
  • 2021-02-18 21:28

    In order to build for Release mode, the shortcut is Ctrl + F5, but I don't think you can build both at the same time...

    I don't understand why you would need to.

    0 讨论(0)
提交回复
热议问题