Prism 6 compatibility with older versions

拥有回忆 提交于 2019-12-07 05:11:14

问题


I have a solution with a main project that uses Prism 5 (WPF). This solution also contains many more projects that are Prism modules.

Now I have to create a new module, and I wonder if I can use Prism 6 only in that module, and it will be compatible with Prism 5 main project, or if I need to continue with Prism 5 in all the modules (or upgrade the entire solution to Prism 6, what is a really big work).

Thank you


回答1:


You'll have to stick with Prism 5 or upgrade everything to Prism 6. There are some breaking changes between these versions:

  • Removed all types that were marked as "Obsolete" in Prism 5
  • Removed IView interface
  • Changed namespaces to remove Microsoft namespaces
  • Moved a number of types around to better organize and to get as much into a single Portable Class Library as possible
  • ViewModelLocator naming convention changes: [Name]View now requires [Name]ViewModel. No longer [Name]ViewViewModel

Source: https://github.com/PrismLibrary/Prism/blob/master/README.md

The namespace change alone is already enough to 'break' your application. You'll now have 2 different instances of e.g. EventAggregator (as they live in a different namespace).



来源:https://stackoverflow.com/questions/33606804/prism-6-compatibility-with-older-versions

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!