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?