最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - Add Azure Communication Calling to UWP APP Marshalling Data - Stack Overflow

programmeradmin3浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论