Re: Why doesn't C# allow incremental compilation like Java?
- From: Paul Werkowitz <newsgroups@xxxxxxxxxxxxxxxx>
- Date: Mon, 23 Apr 2007 09:07:30 +0200
Am 19 Apr 2007 17:08:03 -0700 schrieb mwelsh1118@xxxxxxxxx:
Why doesn't C# allow incremental compilation like Java?And then? At runtime, everything has to be linked together, which uses more
Specifically, in Java I can compile single .java files in isolation.
The resulting individual .class files can be grouped into .jar files.
time than compiling the while C#-program .... what do you gain?
IMO it is no good way to use files as containers for modules. .NET allows
physical allocation of sourcecode (files) and logical allocation
(namespaces, assemblies).
If you want it the Java-way, you can. Simply compile your files to modules,
(/target:module) and link them later. Note that AFAIK VS does not have
project settings to do that, you have to use command line.
[snip]
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).
10 seconds? How many lines do you have in your compilation unit?
My 2 cents...
Paule
.
- Follow-Ups:
- Re: Why doesn't C# allow incremental compilation like Java?
- From: Jon Skeet [C# MVP]
- 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: How to find unused methods?
- Next by Date: Graphic guage level C#(newbie)
- Previous by thread: Re: 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
|
Loading