473,396 Members | 1,666 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,396 software developers and data experts.

External Library Reference.

Fr33dan
57
Hi,
I have a currently have 2 C# projects that won't work together the way I want them to. One project is a library I've written and the other project is a application that uses it. In the future I will likely be writing more applications that will use the same library project.

My question is, Is there some way I can get the projects to reference a single copy of the DLL file from one of my projects?

Currently if I have the library project set up as a dependency I will get an output like this:
Expand|Select|Wrap|Line Numbers
  1. Program Files\Company\App1\App.exe
  2. Program Files\Company\App1\Lib.dll
  3. Program Files\Company\App2\App.exe
  4. Program Files\Company\App2\Lib.dll
Ideally I'd like to get it to work more like this:
Expand|Select|Wrap|Line Numbers
  1. Program Files\Company\App1\App.exe
  2. Program Files\Company\App2\App.exe
  3. Program Files\Company\Lib.dll
I tried creating an Merge module deploy for the library thinking I could reference that instead of my actual project (Like some of the other libraries I'm using do) but I couldn't get it to look at the MSM output instead of the original.
Nov 2 '09 #1
2 2613
Plater
7,872 Expert 4TB
I think you need to register the dll with windows or otherwise put it in some sort of global DLL list. How that is done, I don't know.
Perhaps the GAC(Global Assembly Cache) is the place to look.
Nov 2 '09 #2
Fr33dan
57
After a quick google search I found all the information I need about the GAC and changed my setup on the library to place it there.
My only issue now is that if I reference my library project in my app project the detected dependencies of the app setup project include the output from the library project (not the msm file created by the library setup project).

I can manually exclude those and include my .msm file in the app setup project but there it seems like there is a better way to do it.
Nov 2 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: allard poldermans | last post by:
How can I make a reference to an external CSS or JS file that is relative to the XSL stylesheet, and not relative to the XML data? If you simply put : <link rel="stylesheet" type="text/css"...
1
by: George Ziniewicz | last post by:
.. I have an html file with javascript functions in the <head> section that work fine when called from events or instanced as objects. When I move the functions to an external js file they don't...
2
by: Matora Nickolay | last post by:
Hello. My program has to use third party components located in several external libraries. Those components, also as my program, are usually been changed. The problem is to make my program use...
2
by: Sandeep | last post by:
Hi I have a VC++ ui which has an HTML Container. I have several Javascript functions that need to call functions in VC++ UI. For this , the existing code is using a call "windows.external". What...
1
by: S. van Beek | last post by:
Dear reader, In case an application is ussing an external model library you have to address this external model library in your application. This addressing takes place in a module of the...
3
by: S. van Beek | last post by:
Dear reader, In the module window you can make a link to an external library within the reference form. The reference form can be activated with Tools/References... In the menu bar.
1
by: Lorne Smith | last post by:
Hi, I'm running a small network and need to get the external IP address of my router so that I can update my DNS forwarding service should my IP change (it's a dynamic one)... I can get the IP...
2
by: Kirill Simonov | last post by:
Hi, I've written a pure Python module, which could optionally use an external C library. The external library is not required to be on the user computer however, so I'd like not to build the...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
agi2029
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,...

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.