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. 2 1106
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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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...
|
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...
|
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...
|
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...
| |
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.
|
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...
|
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...
|
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.
--
|
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...
|
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...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
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...
| |