I am getting this error in a WPF app that is built with F#, FsXaml, and Elmish.WPF.
System.Xaml.XamlObjectWriterException:
Cannot create unknown type '{http://schemas.componentone.com/winfx/2006/xaml}C1ProgressIndicator'.
at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
at FsXaml.InjectXaml.from(String file, Boolean loadFromResource, Object root)
- A Views project contains XAML and includes a reference to C1.WPF.4.dll.
- The XAML declares an instance of a control from C1.WPF.4.dll.
- However, there is no F# code that uses any types from C1.WPF.4.dll.
- Consequently, Views.dll does not contain a reference to C1.WPF.4.dll, as confirmed by IL Spy.
- Consequently, when I build App.exe, C1.WPF.4.dll is not included in the output folder.
- Consequently, I get a run-time error.
While I could include a reference to C1.WPF.4.dll in my App project, I would rather not.
Is there a better way to do this?