开发者

Very long build time in Visual Studio

I've a solution with 15 projects (14 class libraries and one web application). Each class library has corresponding test project (i.e. if I have MyApp.Services project there exists MyApp.Services.Tests -- using NUnit). Everything is written in VB.NET. The problem is that when VS tries to compile 开发者_StackOverflow中文版any of *.Tests project it stops responding (the bigger the project the longer the period without reposnse). I don't know where to start looking for an issue. I'll add that I've R# 4.5 installed.

UPDATE 1:

Is there any way to benchmark a build in visual studio? To get build times for every project?

UPDATE 2:

It seems that there is no difference after disabling R#.


Try turning on verbose logging for the build

Tools...Options...Projects and Solutions...Build and Run..."MSBuild project build output verbosity"

This should help you get a better picture of what is going on.


Disabling Resharper will probably help.

As for the benchmark, try building with msbuild with the following options, it will print statistics on build process at the end.

msbuild yoursolution.sln /verbosity:diagnostic


Try closing the tool panes associated with unit testing.


Have you tried disabling Resharper 4.5, using the Tools->Addins menu, and tried building again?

Also, is there a difference in time if you shutdown VS, restart it and load your solution and try building again before you do anything else. It might be that the build times get slower over time?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜