How to rebuild ALL?

主宰稳场 提交于 2019-12-04 04:32:47

问题


In Visual Studio, how do I rebuild a complete solution, including all configurations?

If I choose "Rebuild solution", it always rebuilds ONLY Debug or ONLY Release, but never both.


回答1:


Use the batch build option...right click on the solution to see it.

Here is a screen shot (VS2010 but I believe it's the same for VS2008 too)

Batch build screen shot http://img368.imageshack.us/img368/1516/batchbuild.jpg




回答2:


Some of my project had the 'batch build' option, others didn't.

Found that those that did have it were written in c#.net and those that didn't have it were in vb.net, more information here:

https://msdn.microsoft.com/en-us/library/jj651644.aspx

You can build most types of projects with multiple, or even all, of their build configurations at the same time by using the Batch Build dialog box.

However, you can't build the following types of projects in multiple build configurations at the same time:

  • Windows 8.x Store apps built for Windows using JavaScript.
  • All Visual Basic projects.



回答3:


In Visual Studio 2005, I discovered that under Build->Configuration Manager, I did not have Build checked for the project.



来源:https://stackoverflow.com/questions/1342107/how-to-rebuild-all

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!