Quantcast
Channel: Managed Extensibility Framework
Viewing all articles
Browse latest Browse all 265

New Post: Parts get constructed multiple times

$
0
0
I want to use MEF in my WP8 app, so I grabbed the OOB sources and recompiled adding only the WP8 target to the PCLs - nothing else has been changed.

My problem is that I have a couple of exports of which two of them require the same import. What happens is that the import in question gets constructed twice - contrary to what I would have expected. In the assemblies produced, there is no PartCreationPolicy - and I would have expected that the default sharing would been preserved.

Any ideas how to solve this?

Thanks,

Viewing all articles
Browse latest Browse all 265

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>