I want to reduce the compilation time of the VS.NET project - what are your ideas on how to do this?

My project was developed in Visual Studio 08, in C #. This is a standalone desktop application, about 60 thousand lines of code. I used to love working on this software - now that the complication time has increased to about 2 minutes, it becomes a much less enjoyable experience ...

I think my lack of experience in C # could be a factor; I developed everything under one namespace, for example, would I have a well-structured code base that allows the compiler to recompile only the necessary parts of the code when making changes? Or do I need to separate sections into separate projects / DLLs for this to happen?

How much would upgrading to the last quad-core processor?

Another thought is that perhaps this is a typical task for programmers - is it a long compilation time, a simple thing to manage?

Thanks in advance.

+5
source share
4 answers

I am surprised that 60k lines of code are 2 minutes to compile. I have an application that is 500,000 lines of code, and it takes about a minute and a half. Make sure that you do not perform complete rebuilds every time, and make sure that you do not clear the solution between assemblies. A normal build should perform an incremental build, only recompile the code that has changed since the last build (along with what was affected by this change.)

, (?), ( , ) .. , , 60 000 # , .

+4

, :

  • , .
  • , (FxCop, StyleCop, Code Contracts).
  • .

, 60K # , , 5 .

+10

. , , .

+1

. , ( , ), .

. , /, , , .

, , , , - ( , RAID .. ).

, , , . , ( , , ..)

-1

All Articles