Feb 17, 2012 at 8:54 PM
Edited Feb 17, 2012 at 9:46 PM
I am converting a Visual Studio 2008/SCSF 2008/EntLib4.1 soluction to Visual Studio 2010/SCSF 2010/EntLib5.0.
I understand that "ObjectBuilder2 is no longer a separate assembly. The code is now completely contained in the Unity assembly and there is no need to reference ObjectBuilder2.dll in your projects" in EntLib5.0.
I have a reference to "ObjectBuilder" in some of my projects and I believe that I should get rid of this reference, but I am unable to compile my project after I have removed the reference to "ObjectBuilder". I was thinking that adding a reference
to Microsoft.Practices.Unity.dll in my project would fix the issue, but it does not. I have also added a reference to Microsoft.Practices.ServiceLocation.dll, but this has not resolved my issue.
I cannot seem to find any clear direction on how to properly remove a reference to "ObjectBuilder" in a project.
The[CreateNew] attribute is causing an error in the example below. I have commented out .ObjectBuilder, removed the .ObjectBuilder reference from this project, and have added references (and the using statements) to Microsoft.Practices.Unity.dll
public partial class ArchiveMEPGridView
/// Sets the presenter. The dependency injection system will automatically
/// create a new presenter for you.
public ArchiveMEPGridViewPresenter Presenter
_presenter = value;
_presenter.View = this;
Would somebody be able to help me understand what needs to be done?