MEF and Renamed Classes RRS feed

  • Question

  •  Hi guys, I'm trying to do the Glenn Block tutorial...you can find it at this link "http://codebetter.com/blogs/glenn.block/archive/2009/12/15/building-hello-mef-part-iii-xap-partitioning-with-the-host-s-permission-and-the-sweetness-of-recomposition.aspx".

    I can't find some classes, for example how can I do this? Thanks in advance

    var catalog = new PackageCatalog();
    var container = new CompositionContainer(catalog);
    Wednesday, May 5, 2010 11:54 AM

All replies

  • I kown that the library System.ComponentModel.Composition.Packaging.Toolkit has been included in SL4 but I don't know to do the same things listed above.


    Wednesday, May 5, 2010 12:06 PM
  •  Resolved...I've followed the next tutorial on Glenn blog...part IV...

     in that tutorial a xap is loaded dinamically...now I would reference that Xap...How can I achieve this?

    Thursday, May 6, 2010 3:44 AM
  • Hi lol_B,

    The tutorial uses DeploymentCatelog to download parts from XAPs, you can get the parts by using DeploymentCatelog.Parts.

    Monday, May 10, 2010 1:43 AM
  •  Thank you for the reply..Where Can I find a tutorial for using Parts?

    Wednesday, May 12, 2010 8:46 AM