UWP应用集成Azure Communication Calling发布版出现MissingInteropDataException问题求助
UWP应用集成Azure Communication Calling发布版出现MissingInteropDataException问题求助
我在自己的UWP应用里集成了Azure.Communication.Calling.WindowsClient库,Debug模式下运行一切正常,但切换到Release模式后,调用这个库时就抛出了下面的错误:
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.
我尝试在应用的Default.rd.xml里添加了以下配置,但问题还是没解决:
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata"> <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>
说实话我完全搞不懂这里到底该加什么配置,我也试着跟着相关指导文档去操作,但还是没解决问题,有没有大佬能指点一下?
备注:内容来源于stack exchange,提问作者Guy Lowe
相关产品推荐
相关产品推荐

