开发者

How can I build Debug and Release at once?

When I select menu BuildBuild or anything else, it only builds the currentl开发者_StackOverflowy selected configuration (Debug or Release). How can I make it build, for example, Release also when I'm in "Debug mode" (I have debug selected)?


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.


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.


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.


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜