Re: Why doesn't C# allow incremental compilation like Java?



That's not true, really. You could compile into individual netmodules
(using the /target:module switch) and then assemble them into an assembly
using the assembly linker tool (al.exe).

You should be able to configure VS.NET 2005 to output a module by
changing the project file (specifically, the inputs to the csc task).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

<mwelsh1118@xxxxxxxxx> wrote in message
news:1177027683.624336.7030@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Why doesn't C# allow incremental compilation like Java?

Specifically, in Java I can compile single .java files in isolation.
The resulting individual .class files can be grouped into .jar files.

In C#, there appears to be no analog. I have to compile all my .cs
files into a single .dll.

This has serious drawbacks in terms of compilation. With Eclipse, I
change a file and only that file is re-compiled. With Visual Studio, I
change a file and have to manually re-compile, which may take 10+
seconds for large projects (even if all I did was add a space to a
comment).

Why was this design decision made? And is there any way to speed up
Visual Studio 2005 C# compilation? Are there plans to have background
compilation in future versions of Visual Studio?

Thanks.



.



Relevant Pages

  • Re: memmove crash
    ... Pointers and ints are not the same size on all systems. ... system doesn't compile on yours, then I think I definately want to go back to assembly language. ... I can take an assembly program and recompile it on any other x86 linux system and it will compile and work without a problem, whereas if you take a C program that compiles on one person's x86 linux system, it may or may not compile on another's. ... If a program assembles and works on one x86 linux system, it will assemble and work on another x86 linux system just the same. ...
    (alt.lang.asm)
  • Re: Linux X demo
    ... X programmer to correct the code. ... doesn't "move.l r1,r5", etc., guarantee that no x86 programmer ... How does one assemble it? ... my observations about how to compile or port HK x86 code are still ...
    (alt.lang.asm)
  • Re: Lock Free Data Structure
    ... provided an asm file named ac_i686_masm.asm. ... In case if any one has used appcore please let me know how to compile ... files and assemble assembles as is. ... There at least two problems with the assembly source file when ...
    (comp.programming.threads)
  • Re: Scotts Manifesto?
    ... It takes Scottie a while to compile something as coherent as a ... "manifesto". ... First step is to assemble the illustrative examples of his ... approved "teaching" methods. ...
    (rec.audio.opinion)
  • Re: Upgraded Web Service from VS2003 to VS2005 and all Hell breaks
    ... Visual Studio 2005 Web Application Projects ... "Because the Web Application Project model uses the same conceptual ... My web service project doesn't even have a bin folder. ... When I compile in batch from Visual Build Pro, ...
    (microsoft.public.dotnet.framework.webservices)