473,946 Members | 6,786 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3849
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.c omwrote in message
news:%2******** ********@TK2MSF TNGP02.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******** ******@TK2MSFTN GP04.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.c omwrote in message
news:%2******** ********@TK2MSF TNGP02.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
7766
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 assemblies and the Global Assembly but I am having a hard time figuring them out. Ideally, I would like to have one install that puts all 3 EXEs and all 3 DLLs on the workstation. Any recommendations would be appreciated. Jonathan
4
2488
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 project output group. I tried creating with a setup wizard, but it just doesn't give me an option to add projects, although I was able to add files into the setup. Moreover, creating a normal setup project also did not help. I tried to add a new...
2
2871
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 DLLs and a test application (an .EXE). The .EXE is my startup application. All the DLLs are shared components. This means that they contain a key and are stored in the GAC. When I go to run the test application in the IDE, it will not execute...
5
5415
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 separate files for ease of maintainability. These schemas are all part of the same namespace. When defining a web service that access more than one of these entities, the wsdl file generated by BEA contains multiple schema elements with the same...
12
3192
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 restarting the application. What I did was to create an AppDomain that loaded the plugins and everything was great, until I tried to pass something else that strings between the domains...
21
3887
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 different flavors, each with its main program, libraries, datafiles, doco, etc. Each flavor will also have one or more standalone executables that can be called as tools from within the main program.
2
1109
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 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...
0
1260
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 machine but falls flat on its face on a test box without VS installed. As we use Inno Setup for the installer, we can't take the MSI route. Neither do I want to have to redistribute the vcredist.exe, so I've been trying to ship with the CRT as a...
6
2131
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 somehow was under the impression that, when compiling an ASP.NET 2.0 app, that multiple dll files were output for the project: one .dll per ASPX page/file. Gone was the day when we could simply compile the project and get a single .dll that we...
3
1935
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 what needs to be done to ensure that DLLs are produced & not code files. Note: BOTH 'codebehind' & 'SRC' attribute has been used. --
0
11557
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11152
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10685
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8247
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4938
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3538
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.