Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I’ve upgraded my project today to Prism 7.0.0 and Unity 6.3. 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?

What I have tried:

Investigated the references and tried to rebuild after cleanup of the solution.
Posted
Updated 14-Aug-18 21:08pm
Comments
PureNsanity 15-Aug-18 10:52am    
I understand this may not be possible; however, have you thought of upgrading the container? While I do still view Unity as valuable, it's a much older container implementation. Although I'm personally partial to MEF, Autofac is widely popular and also has Prism extensions. Autofac as a container also has many improvements and features over Unity... Just a thought....

1 solution

Have you checked to make sure your using statements are not still referencing Microsoft.Practices.Unity? The upgrade process doesn't rewrite code for you so you're going to have to replace those entries yourself. It could be just as simple as doing a global search and replace to replace Microsoft.Practices.Unity with Unity.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900