Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7591643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:42:08+00:00 2026-05-30T20:42:08+00:00

Many similar posts but this is not a duplicate I believe. When I add

  • 0

Many similar posts but this is not a duplicate I believe. When I add references in visual studio, some dlls are copied locally while some not.

I understand that the external dlls I get from elsewhere should have a local reference, but then I suppose the ones I choose from Visual Studio’s long list of references (.NET and COM) need not be copied locally. I do not.

Now I noticed that when I choose Shell32 from COM dll is copied locally. By default “Copy Local” is set to true. So I assumed .NET are the ones that need not have a local reference while COM should have. But when I referenced Office Interop objects (COM) I see that they are not copied locally.

  1. How is that some are copied locally and some not. (trying to know something nice)

  2. Also how should I go about setting “Copy Local” property for references generally? Is it recommended just to go by what Visual Studio does by default?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T20:42:09+00:00Added an answer on May 30, 2026 at 8:42 pm

    The odds that VS gets this wrong by default are quite small. Your dev machine is (normally) not that different from your user’s machine, what matters is what is in your GAC. You’ll have .NET installed just like the user so framework assemblies are in the your GAC as well as the user’s so don’t get copied local. Any 3rd party .NET assembly gets copied local, including your own.

    The only corner case are COM pias, Primary Interop Asssemblies. You tend to have some installed on your dev machine, the Office and Internet Explorer pias are fairly common. They won’t be available on the user’s machine unless somebody takes care of installing them. It is not often that you actually need a pia, they are only required when your own assembly exposes a type from them. Just flip Copy Local to True. This is otherwise a rapidly disappearing problem, projects built by VS2010 supports the Embed Interop Types feature, otherwise known as the “no-pia” goody.

    Last but not least, you always need to test your installer. In the unlikely case you missed something, that test will rapidly flush it out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've seen some similar posts, but nothing quite like this... I have a website
This is not related to the domain like many other similar posts with the
I've been reading similar questions, but many of the answers are outdated or not
my issue lokks similar to this one: (link) but i have one-to-many association: <set
(I've looked at many other similar posts on SO and have unfortunately not been
This question is similar to my previous question but not the same ... please
I've seen many similar posts but I am still stumped. I want to run
I actually posted this question because I found similar questions but not a perfect
I've seen many similar errors, but I can't see a solution that applies to
There are many similar questions, but apparently no perfect match, that's why I'm asking.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.