473,406 Members | 2,451 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,406 software developers and data experts.

Same assembly in different deployments

This is probably a very basic question.

I have created a class library, when builded it produces a dll called
test.dll. This dll I use as reference in many different applications. When I
create a deployment project, this dll is added to the output and is shipped
with the application.

When installed, the dll is placed in the same directory as the application
exe file. So for each application the same dll is deployed and therefor the
same assembly is placed in many different directories.

So the thing is: How can I change the setup/code/properties so the
application will look in a different directory for this particular assembly
at runtime, while it look for other assemblies in the application path?

Please note, that it is not an option to install ALL applications in the
same directory.

TIA

PZ
Apr 11 '06 #1
1 1280

"Preben Zacho" <pz@edbgruppen.dk> wrote in message
news:Os**************@TK2MSFTNGP05.phx.gbl...
This is probably a very basic question.

I have created a class library, when builded it produces a dll called
test.dll. This dll I use as reference in many different applications. When
I create a deployment project, this dll is added to the output and is
shipped with the application.

When installed, the dll is placed in the same directory as the application
exe file. So for each application the same dll is deployed and therefor
the same assembly is placed in many different directories.

So the thing is: How can I change the setup/code/properties so the
application will look in a different directory for this particular
assembly at runtime, while it look for other assemblies in the application
path?

Please note, that it is not an option to install ALL applications in the
same directory.

TIA

PZ


So, instead of xcopy deployment? You can use the GAC (Global Assembly
Cache) ... look it up on MSDN and do a search for GAC.

Mythran

Apr 11 '06 #2

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

Similar topics

4
by: Rudolf | last post by:
Is it possible to add a vb.net source code module to a c# project and if so how? Thanks Rudolf
2
by: n_o_s_p_a__m | last post by:
Ok, I have source code shared between 2 projects using links in VSS, so we are compiling the same type information (classes, interfaces, enums) into more than one assembly. This was done only by...
4
by: Christopher C. Bernholt | last post by:
We have a solution which contains 2 projects. The first project is a windows control and it references an assembly. The second project is a test windows application used to test the windows...
1
by: peeping_t | last post by:
I´m currently writing an application that will have some plugin functionality and therefor I´ve created two projects one that will build the exe and one that contains the "framework" for the...
5
by: bhattpiyush | last post by:
Hi All, I have a class Transaction in 2 different assemblies having different namespaces totally. I have an ASP.Net(1.1) page. In the codebehind .cs file I references/imports one of those...
0
by: =?Utf-8?B?Q29saXZpZXI=?= | last post by:
If anyone can help me with this I would really appreciate it: I have an assembly into which I have linked a manifest file as a Win32 resource. This is necessary since I want to use a class in this...
1
by: Peted | last post by:
Bellow is a snippet from the ms website about using loadfile on assemblies that have the same identities. I beleive this "identity" issue may be the cause of a problem i have using the...
8
by: Born Bugler | last post by:
What I'm actually talking about is, when you put the same class in different assemblies, you get two different types. This is reasonable (if you would call it) in most cases as it avoids possible...
7
by: WTH | last post by:
I am now aware (I am primarily a C++ developer) that in C# if you reference the same interface from the same file in two different projects the types are actually incompatible. I found this out...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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,...
0
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...

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.