When my Deployment Catalog contains System.Windows.Controls.Layout.Toolkit.dll
MEF 'breaks'... All I'm doing is adding a reference to this file in my project and the following diagnostics code writes nothing to the VS Output Window:
this.CompositionContainer.ExportsChanged += (s, args) =>
{
var o = args.AddedExports;
o.ToList().ForEach(export =>
System.Diagnostics.Debug
.WriteLine("MEF export: " + export.ToString()));
};
...when the reference is removed the ExportsChanged
event fires. Is this problem my "special" problem or can someone else on Earth reproduce this problem?
Make sure you are subscribing to the DownloadCompleted
event of the DeploymentCatalog. In your event handler, check the Error
property of the EventArgs, and it will probably tell you what the problem is.