MissingMetadataException释放模式UWP 10

时间:2016-05-20 15:05:20

标签: c# visual-studio-2015 uwp .net-native

我的应用程序在调试模式下工作正常,但不是在发布模式下

错误:

SRCSRV: The module '<Embedded module of SharedLibrary.dll>' does not contain source server information.
SRCSRV: The module '<Embedded module of SharedLibrary.dll>' does not contain source server information.
Exception thrown: 'System.Reflection.MissingMetadataException' in System.Private.Reflection.Core.dll
Additional information: Arg_InvokeMethodMissingMetadata, System.EventHandler. For more information, visit http://go.microsoft.com/fwlink/?LinkId=623485
SRCSRV: The module '<Embedded module of SharedLibrary.dll>' does not contain source server information.

我发现了很多关于这个问题的信息,包括stackoverflow Stackoverflow question about same problem

MissingMetadataException troubleshooter

对我来说问题是我没有像ex1那样获得完整的信息。 “Microsoft.Extensions.Caching.Memory.MemoryCacheOptions”附加信息。

我得到“Arg_InvokeMethodMissingMetadata,System.EventHandler”

我尝试将缺少的类型添加到X64版本映射的Default.rd.xaml中。

尝试:

<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" />


<!-- Add your application specific runtime directives here. -->

    <Type Name="System.Private.Reflection.Core.dll" Dynamic="Required All" />
    <Assembly Name=" Mscorlib.dll" Dynamic="Required All" />
</Application>

尝试2

<Type>
  <MethodInstantiation Arguments="System.EventHandler" Dynamic="Required" />
</Type>

我错过了一些信息吗?

0 个答案:

没有答案