EntryPointNotFoundException in Design Mode

Topics: Bootstrappers & IoC, Bugs
Dec 28, 2013 at 5:27 PM
Edited Dec 28, 2013 at 5:29 PM
Using both CM 1.5 and 2.0 I get a 'EntryPointNotFoundException' in the WPF designer:

 at System.Collections.Specialized.INotifyCollectionChanged.add_CollectionChanged(NotifyCollectionChangedEventHandler value)
   at Caliburn.Micro.AssemblySource..cctor().
I use the following markup in the view to get design time data:
d:DataContext="{d:DesignInstance Type=vm:ShellViewModel, IsDesignTimeCreatable=True}"
I DO NOT do anything fancy with Assemblies in AppBootstrapper. It's very basic, using the default conventions.

Any idea?

edit: I tried debugging the WPF designer process using a 2nd instance on VS. When I add a watch for 'AssemblySource.Instance' it gives an exception like 'Type AssemblySource found in both Caliburn.Micro.Platform and Caliburn.Micro.Platform' (yeah that's right).
Dec 28, 2013 at 11:35 PM
I assume you have the design-time check in place in the bootstrapper?
Jan 21, 2014 at 6:47 PM
Seems to be an issue with the WPF designer with INotifyCollectionChanged and Portable Class Library.
Implemented a workaround in latest commit that prevents the exception in the designer.
Jan 22, 2014 at 12:08 PM