MEF 2 & Prism

Topics: Prism v4 - WPF 4
Mar 10, 2014 at 6:40 PM
'ello

Does the new drop of Prism use MEF 2 (System.Composition) or is it still using the old version (System.ComponentModel.Composition)

Thanx
Hein
Mar 13, 2014 at 9:25 PM
Hi Hein,

Prism 4.2 uses the same MEF version than using on previous version of Prism 4.1.

Based on my understanding, MEF 2 would be on Beta release now. So it would not be quite possible for Prism update to MEF 2 while this is not officially published.

Regards.
Gabriel Ostrowsky
https://blogs.southworks.net/gostrowsky
Mar 14, 2014 at 6:39 AM
'ello Gabriel

Strange, the nugget package is marked as stable, and nowhere in the msdn documentation does it state beta:

http://www.nuget.org/packages/microsoft.composition (version 1.0.20)
http://msdn.microsoft.com/en-us/library/jj635137.aspx

I need to use MEF2, because my business layer is written for Azure, and for some reason normal/old MEF with open generics does not work under an azure worker role. It is a bit confusing for me to have to use 2 versions of MEF, that is all, it is not really a major problem

Thanx
Hein
Mar 14, 2014 at 7:38 PM
Hi Hein,

I aplogize as It seems that Mef Codeplex site is outdated regarding MEF 2 releases.

Being Prism an open source library, you would be able to change the older MEF dependencies and adapt the solution with the MEF 2 Nuget package as out of the box.

I will keep looking into this and provide you with better support.

Regards.
Gabriel Ostrowsky
https://blogs.southworks.net/gostrowsky