Help me understand the compendium

So, Jeff Atwood rightly complained that Visual Studio is not doing background compilation: http://www.codinghorror.com/blog/2007/05/c-and-the-compilation-tax.html

The solution from most sources, apparently, is Reshaper, which will gradually compile the background while writing. This leads to their large number of re-factoring in real time and error detection.

But what I don’t understand is that R # is constantly compiling my code, why does it take so long to compile through VS (i.e. Ctrl + Shift + B or similar). I mean, if R # already compiled my code, then why should I recompile?

My guess, of course, is that R # does not override assemblies in my bin directories, but instead stores the compilation results in memory. In that case, is it possible to tell R # to simply override my assemblies on successful compilation?

+3
source share
3 answers

I don’t know about "just complaining" - this is an opinion with which I do not agree :)

However, VB.NET background compilers (and possibly Resharper C #) do not actually build complete assemblies - they cannot! If you think about it, the natural state of your code does not compile at run time! Almost every keystroke puts your code in an invalid state. Think about this line:

var x = new Something();

, "v" "), " ". , , ? , , , ?

, "", - , , , .. , , "", .

, , , - .

+7

Reshaper,

, . , Visual Studio , Resharper, IntelliSense, , GoTo Definition Find All References. Visual Studio , . Resharper .

- . , , .

# - ++, IDE. , . , # . - .

+4

, , Eclipse Java 4 , . java-, , . "Run", ! . - (Tomcat ) . Eclipse.

, Microsoft - .net .

0

Source: https://habr.com/ru/post/1761002/


All Articles