Copy Local Question

  • Thread starter Thread starter Mullin Yu
  • Start date Start date
M

Mullin Yu

hi,

I add a com reference to my c# project, and there's an option Copy Local?
what's the usage of it? i found a file Interop.xxx will be copied to the bin
directory.

thanks!
 
Hi,

In this case, I think, this option means just that - to copy the
auto-generated Interop assembly to the folder the compiled binary will
reside.
 
HI Mullin

There is an interop assembly created for each com object you will be using.
Copy local option, allow you not to make the assembly a global one ( giving
it a strong name , install in the global assembly cash .. etc ) . so it
will just create a normal assembly ( not strong named one ) that you should
have a local copy of in your application in order to be able to use it .
hope that helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Back
Top