Re: Why doesn't C# allow incremental compilation like Java?
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 19 Apr 2007 23:31:24 -0400
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.
.
- Follow-Ups:
- Re: Why doesn't C# allow incremental compilation like Java?
- From: mwelsh1118
- Re: Why doesn't C# allow incremental compilation like Java?
- References:
- Why doesn't C# allow incremental compilation like Java?
- From: mwelsh1118
- Why doesn't C# allow incremental compilation like Java?
- Prev by Date: RE: Image chaching and graphics resources...
- Next by Date: Re: How to fill a DataGridView without freezing the UI thread
- Previous by thread: Why doesn't C# allow incremental compilation like Java?
- Next by thread: Re: Why doesn't C# allow incremental compilation like Java?
- Index(es):
Relevant Pages
|