hs2d
hs2d

Reputation: 6199

Referenced DLL not copied to Output directory

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?

Upvotes: 0

Views: 5149

Answers (2)

Boas Enkler
Boas Enkler

Reputation: 12557

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.

Upvotes: 1

gdoron
gdoron

Reputation: 150253

Is this by design from Microsoft?

Yes.

Upvotes: 3

Related Questions