Just wanted to let folks know that I've just uploaded our latest work on Unity to Codeplex source control (the Source Code tab above). This represents the first real work we've done on Unity as part of the Entlib 5.0 effort.
There's two major updates in this drop. First, the ObjectBuilder2 DLL is now gone. The code is now completely contained in the Unity assembly, and you won't need to reference OB2 anymore in your projects using Unity. Over time the ObjectBuilder stuff is going to lose a lot of it's generality and be just the underpinnings for the container.
Second, we're taking a first cut at fixing our horrendous exception messages. All the extra "BuildFailedException"s that ended up in the inner exception tree are now GONE. Instead, you get a top level ResolutionFailedException, and the InnerException is the actual exception that caused resolution to fail. And the exception message has been reformatted significantly to hopefully get a better description of what the container was doing, and how it ended up where it did, when the error occurred. I'm hoping this is a significant improvement, but need feedback. Please take a look at these and let me know what you think. How could we change the messages to be even more descriptive?
Sadly, we can't do a whole lot about the deep recursive stack traces. But at least your code should end up at the top now when it fails. :-)
Check it out, let me know what you think!
-Chris
Edit: Forgot to mention, we also updated the Silverlight projects to Silverlight 3.