C# - Copy dlls to the exe output directory when using dependency injection with no references?

Posted by NotDan on Stack Overflow See other posts from Stack Overflow or by NotDan
Published on 2011-01-05T16:42:01Z Indexed on 2011/01/05 16:53 UTC
Read the original article Hit count: 217

I have a C# solution that I am using dependency injection to resolve references between dlls. I have an exe project and some other dll projects that are not referenced by the exe (It uses the dlls through the IoC container). The project settings are the default, visual studio settings where it builds each dll in it's own folder. Since the exe doesn't reference the dlls, they never get copied to the output directory of the exe and don't get found by the IoC framework.

How do you handle this? Do you build them all in the same directory? Use post build copy commands? Or something else?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET