views:

285

answers:

4

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 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#.

+1  A: 

Hi there.

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?

Cheers. Jas.

Jason Evans
I'll try this tomorrow (R# thing). If it comes to shutdown, there is no difference, after one the situation is happening again.
rafek
+1  A: 

Try closing the tool panes associated with unit testing.

280Z28
+3  A: 

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.

keithwarren7
+1  A: 

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
Marcel Gosselin