Roi Bar
Roi Bar

Reputation: 125

Why doesn't a dll exist in the output path

I have 3 projects in a one solution:

a references b (CopyLocal = true), and b references c (CopyLocal = true).

Why doesn't c.dll exist on a's output path?

Upvotes: 1

Views: 77

Answers (2)

Roi Bar
Roi Bar

Reputation: 125

It's because the code of project a doesn't use directly project b. (It calls an another class's method which uses (references) b.dll and c.dll...)

Upvotes: 1

Patrick Hofman
Patrick Hofman

Reputation: 156988

Because only referenced projects are included in the build and copied to the output directory. It doesn't matter b references a. It will just not copy the file.

You need to add a reference to a in your project c.

Upvotes: 1

Related Questions