473,320 Members | 2,193 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,320 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 1463
"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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.