473,320 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Compile .cs files

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.

Nov 16 '05 #1
5 6004
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/<c3************@news04.bloor.is.net.cable.rogers.c om>

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]
Nov 16 '05 #2
already tried shardevelop?

www.sharpdevelop.com

nice tool and freeware. some better ideas than VS.
hope it helps you.

greetz
NOSPAM schrieb:
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.


Nov 16 '05 #3
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.
"Massuda" <Ma*****@discussions.microsoft.com> wrote in message
news:DE**********************************@microsof t.com...
"NOSPAM" wrote:
Is there any free tools out there that can automate this?


http://www.sharpdevelop.net/OpenSource/SD/

Nov 16 '05 #4
NOSPAM <no****@xsagfgsagsafg.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #5
"NOSPAM" wrote:
Is there any free tools out there that can automate this?


http://www.sharpdevelop.net/OpenSource/SD/
Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mario T. Lanza | last post by:
I am working with Visual Studio. The solution I am developing is composed of about 8 separate projects. Some of these projects represent different tiers in the N-tiered architecture (data,...
9
by: Brian | last post by:
Greetings: I am trying to compile the following code via command line. It compiles just fine in visual studio 2002 v7 so i took looked at the properties and i got the following command line...
1
by: Zean Smith | last post by:
I am working on a project to migrate a JavaBean + JSP application (running on Oracle application server) to Microsoft ASP.NET + SQL server. In order to see how the original code works, I need to...
8
by: Davy | last post by:
Hi all, I use VC and gcc/gdb to compile and debug C/C++ files. But I found some of the debug version of the compiled files are too large to be run in a small RAM. Can I compile C/C++ Debug...
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
5
by: DFB | last post by:
I am the author of the ZLibNetWrapper project on SourceForge (located at zlibnetwrapper.sf.net). This project is a simple mixed-mode .NET wrapper around the ZLib compression library. The ZLib...
5
by: Torben Laursen | last post by:
Hi Often I just want to compile one c++ file in a project the check it for errors. Now I can right click on a *.cpp file and select "Compile" But is there a way and short cut to compile a file...
5
by: Michael | last post by:
Hi All, I have three very simple files as below. When I try and compile these with g++ -ansi -Wall -pedantic -o crap Base.h Other.h I get an error: Base.h:7: internal compiler error:...
3
by: NvrBst | last post by:
Right now I have C99 code in .c extensions. I compile it in VSC++ and it complains about a lot of errors. I change the extensions to .cpp and compile in VSC++ and it succeeds. Is there a way...
2
by: Andrus | last post by:
I need compile in-memory assembly which references to other in-memory assembly. Compiling second assembly fails with error Line: 0 - Metadata file 'eed7li9m, Version=0.0.0.0, Culture=neutral,...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.