This project has moved and is read-only. For the latest updates, please go here.

Azure Worker Role and MEF Open Generics

Oct 12, 2013 at 9:42 PM
Hi there
I have very strange problem, the open generics exports are not discovered by assembly catalog when working under Microsoft Azure Worker role.

The assembly catalog didn't see the open generic export while it can see ordinary non generic exports just fine.

Otherwise when exporting from web role, the open generic export discovered and imported without any problem.

When switched the MEF from .Net framework 4.5 built in MEF 2.0 to Microsoft.Composition 2.0 from nuget, the open generic export working just fine.

Any clue why this happen with MEF 2.0?
Is this something related to Azure worker roles, or limitation in MEF 2.0 library itself?

I attached a test cloud project to show the problem. To run the project you will need VS 2012 and Azure SDK 2.0

Project Link