I've added Azure.Communication.Calling.WindowsClient
to a UWP app.
It all works fine when running the app in Debug, but when I run it in Release I get this error when trying to use the library:
System.Runtime.InteropServices.MissingInteropDataException: 'System.Collections.Generic.IEnumerable`1[Azure.Communication.Calling.WindowsClient.CallIdentifier] is missing interop type marshalling data. To enable interop type marshalling data, add a MarshalObject directive to the application rd.xml file. For more information, please visit /?LinkID=393965'
I've added the following to the app's Default.rd.xml with no success:
<Directives xmlns=";>
<Application>
<!--
An Assembly element with Name="*Application*" applies to all assemblies in
the application package. The asterisks are not wildcards.
-->
<Assembly Name="*Application*" Dynamic="Required All" />
<Type Name="Azure.Communication.Calling.WindowsClient">
<MethodInstantiation Name="CallIdentifier" Arguments="" Dynamic="Required" />
</Type>
<!-- Add your application specific runtime directives here. -->
</Application>
I must admit I don't understand what I should be adding here. I tried following these instructions.