Creating multiple output files. (EXE and DLLs)

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.
 
L

Lebesgue

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.
 
C

ChrisM

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top