Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 user's system!

Thanks all:)

Posted

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 :)

Never trouble another for what you can do for yourself.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...