Solved

Referring Interop dlls

Posted on 2006-06-27
3
232 Views
Last Modified: 2010-04-16
I have a C# application in which i am referring Microsoft Office Object Library 11.0 and Microsoft Outlook Object Library 11.0 .After referring, if i check these references, i found that these are getting referred from local folder and Copy Local is true.In some other machines , Copy Local is false and it is referring GAC.,Do i need to always keep Copy Local to true.Can anybody tell me the the advan/disadv of setting Copy Local to true or false.

Jisha.
0
Comment
Question by:jisha123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 50 total points
ID: 16992632
Copy Local ensures that referenced library is available at runtime, since it is placed in the same directory as executable.
For library which is always available through GAC or system PATH, this property can be set to false. Generally, true value is always OK, it requires some time for copying whem project is built, but ensures that library is always available.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question