Why copy local with DLL in VS.NET?

  • Thread starter Thread starter Brett Romero
  • Start date Start date
B

Brett Romero

What is the difference in
copy local = true/false

in VS.NET when referencing a DLL? I've noticed that changes to the DLL
(recompiling) aren't reflected in my project either way. I have to
remove then add the DLL to see any changes.

Thanks,
Brett
 
If project has copylocal = true references, the dlls to which he refers will
be copied in the same folder, where output binary will be located.
 
Brett,

This allows XCOPY deployment, i.e. you can copy the directory to another
directory (maybe in another machine, as long as it has .NET runtime) and the
app will run since it will find locally anything it needs.

Regards - Octavio
 
Example : you use a third party component which is installed in the GAC on
developers PCs. However, for your clients, you might not want to have this
same component installed in their GACs, you might just want to deploy the
third party assemblies in the same directory as your normal application
files. Using Local Copy true in this case, makes it easier to create to
deployment package, since all the files you need are in the same output
directory for your project.
 

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