Very long build time in Visual Studio

I have a solution with 15 projects (14 class libraries and one web application). Each class library has a corresponding test project (i.e. if I have a MyApp.Services project, MyApp.Services.Tests exists - using NUnit). Everything is written in VB.NET. The problem is that when VS tries to compile any * .Tests project, it stops responding (the larger the project, the longer this period is not saved). I don’t know where to start looking for a problem. I will add that I have R # 4.5 installed.

UPDATE 1:

Is there a way to evaluate performance in a visual studio? To get build time for each project?

UPDATE 2:

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

+4
source share
4 answers

Try enabling verbose logging for builds

Tools ... Options ... Projects and solutions ... Build and run ... "MSBuild project build output verbosity"

This will help you better understand what is happening.

+5
source

Disabling Resharper will probably help.

As for the standard, try creating the following parameters using msbuild, it will print statistics on the build process at the end.

msbuild yoursolution.sln /verbosity:diagnostic 
+2
source

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

Also, is there a time difference if you shut down VS, restart it and load your solution and try creating one more time before doing anything else. Maybe build time gets slower over time?

+1
source

Try closing the toolbars related to unit testing.

+1
source

All Articles