25926

Use Prism.Unity.UnityBootstrapper with Unity.IUnityContainer

Question:

I’ve upgraded my project today to Prism 6.3.0 and Unity 5.3.1. Before that, I had Prism 5 and Unity 4.

Now I’m running into problems with the Prism.Unity.UnityBootstrapper: it seems that the Container field is still a Microsoft.Practices.Unity.IUnityContainer instead of Unity.IUnityContainer.

I had hoped that the upgrade would cleanly cut all references to Microsoft.Practices.Unity off of my project, but it seems that I’m still forced to use the “old” Prism library, at least in parts.

Why does this situation arise, and what do I do to make it right? Am I missing something?

Answer1:

Unity 5.x is not supported in Prism yet. So, you will have to stick with 4.x until that happens. My understanding is, it is a goal of the team to support Unity 5.x in Prism 7 and up.

As you mentioned in your comment, there has been a lot of talk in the GitHub repo for Prism about the changes that came along with Unity 5. Glad to know that there are people willing to take on Unity, and move it forward, though.

Recommend

  • unity xml configuration generic interfaces
  • Get web methods dynamically for an asmx service
  • Cocos2d - Collision Detection of Rotated Sprite
  • Resolve multiple implementation of a single interface in unity
  • Unity/Caliburn Micro, Injection Constructor with multiple parameters
  • How to define generic class for mapping muti-class?
  • Pipeline in Windows batch backquote
  • Designing a simple bandpass/bandstop filter in Matlab
  • How to make delete key- delete all selected edit text in custom android keyboard
  • How can I find a style trigger-embedded element by name in WPF?
  • KRL RSS parser: Handle encoding issues?
  • why is deleting this object causing problems?
  • Data persistence when worker process dies, how?
  • shell script for grabbing data and subtracting
  • How to make a shared resource thread-safe when using dependency injection?
  • How to get a list of all blobs in a repository in Git
  • How can I create, read, update and delete Mediawiki articles via scripts?
  • Why do I link my jquery inside a document.write?
  • QVideoWidget: Video is cut off
  • iOS background and images seem to not scale properly for retina display
  • Custom partiotioning of JavaDStreamPairRDD
  • Binding ContextMenu Tag to Owner
  • How can I get process name of specific PID with ps command in alpine
  • Connection pooling with URLConnection?
  • richtextbox to string
  • Compress a file with GZipStream while maintaining its meta-data
  • powershell Get-Counter -ComputerName parameter on Windows 7
  • Xamarin MonoAndroid Azure mobile service InsertAsync
  • C#: Import/Export Settings into/from a File
  • Syntax error on tokens, AnnotationName expected instead - error on query
  • JSR-330 support in Picocontainer : @Inject … @Named(\"xxx)
  • Private IP address in reserved subnet range
  • How To Customize ASP.NET Chart Databound To SqlDataSource
  • How can I display the parent menu item's description using Wordpress walkers?
  • Authentication in Play! and RestEasy
  • Linq Objects Group By & Sum
  • Retrieving value from sql ExecuteScalar()
  • KeystoneJS: Relationships in Admin UI not updating
  • Hits per day in Google Big Query
  • Checking variable from a different class in C#