Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to speed up the compilation of large c# solutions

I have a C# solution with about 60 large projects. After a get latest version the compilation takes a lot of time. Do you have similar problems and what should be done?

like image 756
dany Avatar asked Aug 19 '10 10:08

dany


People also ask

Why does C++ compilation take so long?

Every single compilation unit requires hundreds or even thousands of headers to be (1) loaded and (2) compiled. Every one of them typically has to be recompiled for every compilation unit, because the preprocessor ensures that the result of compiling a header might vary between every compilation unit.

What are the steps involved in C compilation?

Compilation process in C involves four steps: pre-processing, compiling, assembling, and linking. The preprocessor tool helps in comments removal, macros expansion, file inclusion, and conditional compilation. These commands are executed in the first step of the compilation process.


1 Answers

Pre-compile some projects first. Make them to library if possible. Then, add the projects back as reference. It will greatly shorten the compile time.

like image 164
Raptor Avatar answered Sep 19 '22 14:09

Raptor