Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling Multiple cs files prob 1

Status
Not open for further replies.

matthewking

Programmer
Jul 15, 2002
75
ES
Hi,

Im trying to compile two files into a exe, but can't make it work.

The files are:

main.cs - member of application.core.components namespace
aboutForm.cs - member of application.core.components namespace

Im having trouble compiling because both of them reference the namespace, and they can't if ones not compiled..

Im totally lost and can't find any information about this specific problem on the internet.

Any help would be greatly appreciated.

Thanks,
Matthew.
 
I'm pretty sure you can put them both onto the csc.exe command line to compile them into your assembly.

If you have a problem where one won't compile without the other (because of dependency issues) then you need to isolate the offending class(s) to a third source file and compile it first, and set a reference to it in the other projects.

Chip H.
 
Great,

I compiled the offending class into a library, then referenced that when compiling the main class into a .exe.

Thanks very much Chip.

Matt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top