Compile .cs files

G

Guest

I don't have Visual Studio, Is there an easy way to compile bunch of .cs
files at once? I have written several .cs files and put in the /bin folder
.... everytime I add a new file, I have to edit the batch file, it's kind
of annoying if the project grows bigger.

Is there any free tools out there that can automate this?

N.S.
 
R

Richard Blewett [DevelopMentor]

Do you want to compiler them into 1 assembly or many?

csc *.cs

will compile them into one - the result exe (in this case) will be names the same as the .cs file with Main() in it.

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<c3j4d.1$18%[email protected]>

I don't have Visual Studio, Is there an easy way to compile bunch of .cs
files at once? I have written several .cs files and put in the /bin folder
... everytime I add a new file, I have to edit the batch file, it's kind
of annoying if the project grows bigger.

Is there any free tools out there that can automate this?

N.S.




---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004



[microsoft.public.dotnet.languages.csharp]
 
G

Guest

Thanks.. I only know about Web Matrix, but never use SharpDevelop.net This
SharpDevelop is awesome!!!! Thanks a lot!!!!!!!!!!!!!! it solves all my
compile problems.
 
J

Jon Skeet [C# MVP]

NOSPAM said:
I don't have Visual Studio, Is there an easy way to compile bunch of .cs
files at once? I have written several .cs files and put in the /bin folder
... everytime I add a new file, I have to edit the batch file, it's kind
of annoying if the project grows bigger.

Is there any free tools out there that can automate this?

One alternative not yet mentioned is NAnt:

http://nant.sf.net

It's a build tool fashioned after Ant, the Apache Jakarta project
written in Java.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,167
Latest member
SusanaSwan
Top