views:

91

answers:

2

Right now our team's ASP.NET MVC 2.0 web project takes about 4 minutes to do build on debug. We have the following things included on our project:

  • t4MVC templates
  • compiling the asp.net mvc's views on all builds

My work pc is a

  • Intel core 2 duo T7250 @ 2.00 Mhz.
  • Windows 7 32 bit ultimate
  • 4 gb ram

I am also getting the same build times, on my desktop

  • Intel core 2 Duo E6550 Conroe 2.33GHz
  • 6gb ram
  • ocz ssd drive

I do not see any difference between my desktop and laptop? I am guessing that it CPU bound? I may need to upgrade my box?

I did set this to false, and the build times went from 3 minutes before now down to 5 seconds.

 <MvcBuildViews>false</MvcBuildViews>

I believe the problem is the compiling the asp.net mvc views. I am still need to see why it takes so long?

+2  A: 

Have you tried building the project with msbuild instead of from visual studio? this may give you a clue where the bottlenecks are.

See also:

Colin Pickard