Application References VS.NET 2005

ADO DOT NET

Well-known member
Joined
Dec 20, 2006
Messages
156
Hi anyone here to help the others:)
I have some questions about application references:
1. When I add components to my application, some of them have the "Copy Local" property set to True and some of them set to False! To publish do I need to set all them to True?
2. I have used some COM components in my .NET application. So do I need to register them on target machine using RegSvr32.exe?
3. In the references tab, there is a path to the components! Should I manually copy the components to the application folder and re-add them to the project with the new location? This path may change in the users system!
Thanks all:)
 
Copy Local

  1. Components which reside in the Global Assembly Cache (GAC) or are part of the framework do not need to be copied locally since they are accessible from any location. However, other components must be located during execution so the most usual practice is to copy them along with the project files. You should only set Copy Local to true if the components are not part of the framework and you do not know if they are installed in the GAC on the target machine. However, the chances are that they will be, so you should not need to change this setting.

  2. Yes, COM components need to be registered as normal.

  3. No, you should not need to move component files. The Copy Local setting handles this for you.

Good luck :)
 
Back
Top