We are using the Lumia.Imaging.SDK 2.0 in a Windows Phone 8.1 Runtime app. For some reason, Microsoft failed to set the ActivatableAttribute on the Lumia.Imaging.RandomAccessStreamImageSource class. Consequently, this class does not get marked as an ActivatableClass in the appxmanifest.xml. Of course, trying to instantiate this class leads to the following error.
A first chance exception of type 'System.TypeLoadException' occurred in MyApp.exe Requested Windows Runtime type 'Lumia.Imaging.RandomAccessStreamImageSource' is not registered.
Does anyone know how I can register this class as activatable from C# at run time? Or, is there a way to "hack" the Lumia.Imaging.winmd to include the ActivatableAttribute?
Thanks for your help.