开发者

visual studio 2008 build optimization

开发者 https://www.devze.com 2023-01-26 04:52 出处:网络
In single solution we having 100 projects, i开发者_Go百科f we build solution its taking lots of time to build. I want to know do we have options to increase speed of visual studio build process.

In single solution we having 100 projects, i开发者_Go百科f we build solution its taking lots of time to build. I want to know do we have options to increase speed of visual studio build process.

Language used for development c#.


We have nearly 100 projects in one solution and a dev build time of only seconds :)

For local development builds we created a Visual Studio Addin that changes Project references to DLL references and unloads the unwanted projects (and an option to switch them back of course).

  • Build our entire solution once
  • Unload the projects we are not currently working on and change all project references to DLL references.
  • Before check-in change all references back from DLL to project references.

Our builds now only take seconds when we are working on only a few projects at a time. We can also still debug the additional projects as it links to the debug DLLs. The tool typically takes 10-30 seconds to make a large number of changes, but you don't have to do that often.


A lot of the time in a large solution like that is copying dependencies around to all the various bins. You can shorten the time significantly by pointing all of the outputs to the same directory rather than the local bins.

  1. right click on each project >> properties >> Build
  2. Under "Output" change the path to a common directory. We use ".._builds\bin\Debug\"
0

精彩评论

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