About copy local settings in visual studio 2003

  • Thread starter Thread starter tony
  • Start date Start date
T

tony

Hello!

I use visual studio 2003 and here you can set true or false on a identifier
called copy local on each reference.
The description on this copy local says "Indicates whether the references
will be copied to the output directory."

I have a solution file with several project that is both class library dll
and user control dll.

Now to my question what is the recommended setting on this copy local. The
default is true.
What is the difference if this copy local is set to true or false I mean
what effect does it have on the application.

I have noticed in some cases I get compile error if this is set to true but
if I change to false the compile error is gone.

//Tony
 
In general "Copy Local" = False for the public components in GAC, that need
not to be located in you folder to be used your app. And all your private
componets should be copied to the application folder.

But as I mention it's "general" behavior. There could be a lot of cases when
you needn't copy you referenced component to the application folder - for
example some kind of post-build events when you manually copy you components,
or custom ShadowCopying for application domains or etc
I use visual studio 2003 and here you can set true or false on a identifier
called copy local on each reference.
The description on this copy local says "Indicates whether the references
will be copied to the output directory."

I have a solution file with several project that is both class library dll
and user control dll.

Now to my question what is the recommended setting on this copy local. The
default is true.
What is the difference if this copy local is set to true or false I mean
what effect does it have on the application.

I have noticed in some cases I get compile error if this is set to true but
if I change to false the compile error is gone.

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top