473,396 Members | 1,772 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.

Proper use of shared references

I have a situation where project A references project B which references
project C, all of which are in the same solution. Project A is the Startup
solution. Also, I use a couple of third party dll's in the projects (lets
call them Ref.NET and Ref.COM). As you probably guessed by the names, one is
a .NET reference and the other is a COM reference.. Ref.NET is referenced by
all of the projects while Ref.COM is only referenced by projects B and C.

My question is what is the proper way to reference Ref.NET and Ref.COM?
Should I always use Copy Local = True, or is it better to use Copy Local =
False in some of the projects? Note that both dll’s default to Copy Local =
True when they are added to the projects, even though Ref.NET's Strong Name
property is True in the Properties window.

Thanks for any help.
Lance

Nov 21 '05 #1
1 1467
"ljlevend" <lj******@nospam.nospam> wrote in message
news:13**********************************@microsof t.com...
.. . .
My question is what is the proper way to reference Ref.NET and
Ref.COM?
Should I always use Copy Local = True, or is it better to use Copy
Local = False in some of the projects?
Personally, I /avoid/ Copy Local whenever and wherever possible.
OK, so I lose the "dynamic updating" that a local assembly gets if
I ever "drop in" a new copy but, in my setup, that's not an issue.
Also, once Copy Local "takes hold", I've found it quite difficult to
"persuade" it to let go again, even if I do subsequently put things into
the GAC so they are global to the machine.
Note that both dll's default to Copy Local = True when they are
added to the projects, even though Ref.NET's Strong Name
property is True in the Properties window.


Strong Naming is only part of the Battle. You have to add the
assembly into the Global Assembly Cache before Copy Local finally
gives up trying to assimilate your Dll.

HTH,
Phill W.
Nov 21 '05 #2

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

Similar topics

0
by: Jason Heyes | last post by:
I wrote a previous post that asked whether there was a reference-counted implementation of std::vector. Apparantly there wasn't. So my next question is, is it possible to write your own shared...
11
by: Michael Schuler | last post by:
The use of STL in shared memory poses a real problem since (non-smart) pointers are not allowed there. Is there any solution for containers in shared memory using smart pointers? Where can I...
1
by: Dan | last post by:
Here's a scenario I'd like to discuss in order to setup my VS.NET IDE properly and be able to prepare a distribution: a) I have a windows forms C# app using 3 shared assemblies I developed to...
9
by: Invalidlastname | last post by:
Hi, We developed some assemblies which use EnterpriseServices queued components. In order to use EnterpriseServices, these assemblies need to be installed into GAC. I used the pre-build and...
11
by: tshad | last post by:
I am setting up some of my functions in a class called MyFunctions. I am not clear as to the best time to set a function as Shared and when not to. For example, I have the following bit...
13
by: Nak | last post by:
Hi there, In VB6 if I wanted to make a shared application so to speak I would create an ActiveX EXE. This would allow me to expose objects of the application but only have 1 instance loaded. ...
0
by: ljlevend | last post by:
I have a situation where project A references project B which references project C, all of which are in the same solution. Project A is the Startup solution. Also, I use a couple of third party...
1
by: Thomas T. Thai | last post by:
I'm looking for a better way to make use of foreign keys. Here is a sample setup: -- TESTING Foreign Keys create table mod ( mod_id int not null primary key, name varchar(32) not null...
2
by: Don Kelloway | last post by:
I'm a first-time user with PostgreSQL so please forgive my ignorance. I've purchased (and read) Practical PostgreSQL (O'Reilly) and PostgreSQL Essential Reference (New Riders). So far, so good. ...
22
by: PW | last post by:
Hi All, I go into debug mode with the code below and varReturnVal is Null, but the code still is run. Any idea why? Dim varReturnVal As Variant Dim intDogID As Integer
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
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.