Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 799
rafek Avatar asked Jan 23 '23 01:01

rafek


2 Answers

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.

like image 104
keithwarren7 Avatar answered Jan 31 '23 19:01

keithwarren7


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
like image 34
Marcel Gosselin Avatar answered Jan 31 '23 20:01

Marcel Gosselin