HY, 我正在开发xamarin pcl中的UWP应用程序。但是当我想在发布模式下构建应用程序时,它会给出一个在调试模式下不显示的错误。
当我回到调试模式并启用调试设置“公共语言运行时异常”时,我收到以下错误:
发生了System.IO.FileNotFoundException 的HResult = 0x80070002 Message =无法加载文件或程序集'clrcompression,Culture = neutral,PublicKeyToken = null'。 Het systeem kan het opgegeven bestand niet vinden。 来源= 堆栈跟踪: 在System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName,String codeBase,Evidence assemblySecurity,RuntimeAssembly locationHint,StackCrawlMark& stackMark,IntPtr pPrivHostBinder,Boolean throwOnFileNotFound,Boolean forIntrospection,Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName,String codeBase,Evidence assemblySecurity,RuntimeAssembly locationHint,StackCrawlMark& stackMark,IntPtr pPrivHostBinder,Boolean throwOnFileNotFound,Boolean forIntrospection,Boolean suppressSecurityChecks)
但是dll位于发行版和调试文件夹中。
如何解决?
更新: 细节:
发生了System.IO.FileNotFoundException 的HResult = 0x80070002 消息=无法加载文件或程序集'clrcompression,Culture = neutral,PublicKeyToken = null'。
Het systeem kan het opgegeven bestand niet vinden。 来源= System.Private.CoreLib 堆栈跟踪: 在System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName,String codeBase,Evidence assemblySecurity,RuntimeAssembly locationHint,StackCrawlMark& stackMark,IntPtr pPrivHostBinder,Boolean throwOnFileNotFound,Boolean forIntrospection,Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName,String codeBase,Evidence assemblySecurity,RuntimeAssembly locationHint,StackCrawlMark& stackMark,IntPtr pPrivHostBinder,Boolean throwOnFileNotFound,Boolean forIntrospection,Boolean suppressSecurityChecks)