473,322 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Creating multiple output files. (EXE and DLLs)

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.
Sep 5 '06 #1
2 3831
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.

"ChrisM" <ch**************@suedeyahoo.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
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.

Sep 5 '06 #2
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

"Lebesgue" <le******@gmail.comwrote in message
news:en**************@TK2MSFTNGP04.phx.gbl...
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.

"ChrisM" <ch**************@suedeyahoo.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>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.


Sep 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jon | last post by:
I have 3 VB.net executables that reference the same 3 VB.Net DLLs. How is the best way to distribute the EXEs without putting 3 copies of of DLL on a user's machine. I looked into Private...
4
by: Nick | last post by:
Hi, I have a windows application, wherein the solution consists of 5 projects. When I try to create a setup and deployment project for this solution, I'm somehow unable to add anything in...
2
by: Johann Blake | last post by:
I can hardly believe I'm the first one to report this, but having gone through the newsgroup, it appears that way. I would like to open a solution in the VS.NET IDE that consists of multiple...
5
by: Jeff | last post by:
We are using .Net and the wsdl Utility to generate proxies to consume web services built using the BEA toolset. The data architects on the BEA side create XML schemas with various entities in...
12
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
21
by: Al Christoph | last post by:
I posted this last week end in the MSDN forums. No luck there. Let's see what the experts here have to say:-)))) I have a rather convoluted project. The distributable will come in eight...
2
by: ChrisM | last post by:
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...
0
by: erikjalevik | last post by:
I have now spent the best part of a day trying to find out how to distribute our unmanaged C++ app built with a newly purchased copy of VS2005. As per all the other posts, it runs fine on the dev...
6
by: Bob Johnson | last post by:
I'm finally getting around to migrating a "big" ASP.NET 1.1 app to 2.0. I've been reading up on the differences and I'm NOT finding something I was lead to believe was the case a long time ago. I...
3
by: =?Utf-8?B?WmlhbmdpIEpvbmVz?= | last post by:
Hi, I m using VS .NET 2003 to create a website. Using the setup package I create a setup as well. But this setup has files with actual code in it & not pre-compiled DLLs. Please let me know...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.