开发者

How can I determine why a build runs slowly in Visual Studio 2005?

开发者 https://www.devze.com 2022-12-09 09:18 出处:网络
I wanted to know if it is possible to know why a Visual Studio 2005 (MSBuild) build is taking a long time to build a project.

I wanted to know if it is possible to know why a Visual Studio 2005 (MSBuild) build is taking a long time to build a project.

Suddenly we are getting 7-minute build times开发者_如何学JAVA on some computers, while others take less, such as 4 minutes.

So I think I need to identify changes that were made to the project and are causing a longer build time.

Any ideas on how I can do that?


Take a look at MSBuild Profiler to analyze where the slow down is. Based on that information, dig into what each task is doing and factor in the things that Chris mentions in his answer.


Is it a C++ project? I had the same problem when I moved my project from Visual Studio 6.0. Turning off the Code Optimization did save a lot of time. It was almost impossible to work with activated Optimization.


It re-evaluates the references on every build. If any of your references are on network drives that could be slowing it up.


Some computers are naturally going to perform builds faster than others.. This is, in part, a function of processor, ram, and HD speeds.

Regarding why you see 7 minute build times there could be any number of reasons. Amount of code in project(s). Number of projects in solution. Amount of post / pre build steps. Speed of network in downloading anything from source control it needs. Number of other processes running on your computers. Amount of RAM and other resources available to perform the builds..

You get the idea.

0

精彩评论

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