0

My project1 references project2. In project2 I added some dll as link. However when I publish the project, the dll are not in the resulting folder.

Is it possible to do this or I am doom to add the dll directly to the project1.

Toto
  • 7,491
  • 18
  • 50
  • 72

1 Answers1

3

Dependencies are not copied transitively - I believe you'll have to manually add the reference to project1. You could have a postbuild step to copy all the dlls yourself instead, of course.

Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
  • I don't know, to be honest - what sort of "publish" are you talking about? ClickOnce? ASP.NET? It's probably easier to just add the reference... – Jon Skeet Oct 06 '09 at 09:17
  • Right, I was not very clear, I meant a clickOnce. In fact projet2 (and 3) references all required assemblies for some RealTime aspect (and DB dll for project3). It's cleaner if I do not add the reference in project1. – Toto Oct 06 '09 at 09:21
  • It may well be cleaner in theory, but I suspect you'll find that it's simpler from a deployment point of view just to bite the bullet and add the references. – Jon Skeet Oct 06 '09 at 10:06
  • Yep, ok, I finally added the references. – Toto Oct 06 '09 at 11:15