Build Incrementally in VS 2005

丶灬走出姿态 提交于 2020-01-15 05:59:30

问题


We have a 50 projects solution in VS 2005.

Is any way to get incremental build if nothing was changed?

It is kind of doing it now, but it executes all prebuild and post build events for each project.

Is any way to prevent it?


回答1:


Have a look at the Build Events tab. Notice the dropdown at the bottom that says Run the post-build event:. Does it say "On successful build"? Try changing it to "When the build updates the project output".




回答2:


Visual studio does what you describe by default, custom build steps are not executed for up to date projects.

Something in your dependancies or build settings are causing it to update all builds. Unfortunately it's hard to track down without additional infromation.




回答3:


If you know ahead of time which ones you would like to build or not build, you could create different build configurations that only build specified projects.

This solution doesn't use dependencies at all, so it will only work if you have a few different distinct groups of projects.



来源:https://stackoverflow.com/questions/227991/build-incrementally-in-vs-2005

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