0

I have 2 projects in my solution: project A and B. I added a dll reference to my project A. Now when i build the project A the dll is copied to the project A output directory. Now if i reference project to project A from project B, the dll is newer copied to projects B output folder. Why is that?

Is this by design from Microsoft?

hs2d
  • 6,027
  • 24
  • 64
  • 103

2 Answers2

3

Is this by design from Microsoft?

Yes.

gdoron
  • 147,333
  • 58
  • 291
  • 367
1

You can choose wether the assemblies are copied by setting the "copy to output" option.

In my projects the once which produce a runtime (Console,App, unit tests)..), are copying refs to local. This is important because without that the app wouldn't run.

The other projects (components and so on) are bulding to a central binary folder and are not copying their references, becuase they were taken from there. This saves a huge amount of build time.

Boas Enkler
  • 12,264
  • 16
  • 69
  • 143