(E-Mail Removed) wrote:
> I'm a newbie to csharp. I've just read that there are no object files
> (*.obj) in C#. So a command such as this will build my.exe straight
> from the source files.
>
> csc.exe /out:my.exe *.cs
>
> Does csc.exe build every source file everytime this command is issued?
Yes.
> Or does it somehow know which source files are newer and build
> selectively.
C# is not compilable on a forward-only basis like C, C++ & Delphi, and
there are no intermediate files as you know, so it compiles everything.
Typically, the unit of dependency analysis is the assembly. One can use
MSBuild or NAnt or even make to determine whether or not to build an
assembly based on its sources.
-- Barry
--
http://barrkel.blogspot.com/