Creating multiple output files. (EXE and DLLs)

  • Thread starter Thread starter ChrisM
  • Start date Start date
C

ChrisM

Hi,

I have a C# project that is currently a standalone application. (It compiles
to create a single EXE file).
A new project that I have now been given to work on needs to be a separate
application, but it could share some of the functionality of the other
project. The obvious solution seems to be to compile the original
application to create the EXE file plus a DLL containing the common stuff,
then I can reference the DLL with the second project as well and use the
common classes.
Problem is, I don't know how to 'spilt' my original app so that some classes
are built into the EXE, and others are built into the DLL.
If anyone could give me some pointers (ideally a tutorial or somthing) I
would be most grateful.

Thanks,

Chris.
 
Create a second project in solution which will be a class library project.
Move the files with classes needed in both projects into the class library
project. Add reference to the class library project in your main project
(the one which compiles into exe). That's it.
 
Ahh, Ok, think I get the idea. Will go away and give it a go...
I'll let you know if I have any problems!! :-)

Cheers,

Chris
 
Back
Top