To take your example, the code has a Foo.dll. We inject that as a project reference when we build, which is the exact same equivalent as when you add a reference yourself to Foo.dll.
At that point, if you load up Foo.Core in Foo.dll, fusion already knows the path of Foo.dll and will happily load Foo.Core.dll from there. Serialization assemblies and other associated files to an assembly are also located by msbuild at build time without us having to much around with it.
If however you look at your output path (in the case where you added the reference yourself) then you will find Foo.dll but not Foo.Core.dll (because no one except Foo.dll knows about it).
This is not something we can do much about at that point, because that's the existing behavior of assembly references, and so openwrap, nuget and anything else that feeds references expects the right things to be done by msbiuld.
We *could* add everything that was found in /bin-* to your project at build time by adding them as Content with Copy=always, so they always end up being part of your project, but i'm not entirely sure what the implications of this are and if we wouldn't end up breaking more things than we fix so that requires a bit of thinking.
________________________________________
From: openwra...@googlegroups.com [openwra...@googlegroups.com] on behalf of Chris Eldredge [chris.e...@gmail.com]
Sent: 17 November 2011 01:16
To: OpenWrap Development Mailing List
Subject: [openwrap-devl] referenced-assemblies
In the meantime we could certainly investigate the copying of selected things in bin- and make that an option, as we're already doing content injection (for the assemblyinfo.cs generation) that would not be a problem.
________________________________________
From: openwra...@googlegroups.com [openwra...@googlegroups.com] on behalf of Chris Eldredge [chris.e...@gmail.com]
Sent: 17 November 2011 15:40
To: OpenWrap Development Mailing List
Subject: [openwrap-devl] Re: referenced-assemblies