including classes in same directory

clearz

Member
Joined
Jul 21, 2003
Messages
22
Hi

I am using a texteditor to write my c# programs. Currently I have to write all my classes in one big file to get it to compile. I would like to keep my classes in seperate files in the same directory as my main class but the c# compiler will not find them. How do I go about getting the compiler to see them.

Thanks
John Cleary
 
You can use wild-cards, so do something like this:
Code:
csc.exe /target:winexe /out:myprog.exe *.cs
Alternatively, specify them one by one:
Code:
csc.exe /target:winexe /out:myprog.exe file1.cs file2.cs
 
Last edited by a moderator:
Back
Top