Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted (edited)
You can use wild-cards, so do something like this:
csc.exe /target:winexe /out:myprog.exe *.cs

Alternatively, specify them one by one:

csc.exe /target:winexe /out:myprog.exe file1.cs file2.cs

Edited by Volte

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...