Could not load file or assembly 'clrcompression, xamarin forms UWP

十年热恋 提交于 2019-12-07 01:57:10

问题


During OnLaunched at Xamarin.Forms.Forms.Init(e); the app throws System.IO.FileNotFoundException Could not load file or assembly 'clrcompression,

I have the following dependencies

"Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2",
"Newtonsoft.Json": "9.0.1",
"System.Collections.Immutable": "1.2.0",
"Xamarin.Forms": "2.3.1.114"

All the xamarin sample apps for uwp are running without a problem.

UPDATE: The exception is now gone, reason unknown. The only known difference is that i added and then removed xlabs dependencies. I think this triggered a rebuild of a broken dependency graph?!

It would still be nice to know how to debug this dependency graph issues.


回答1:


This happens if you have all of the 'Common Language Runtime Exceptions' enabled in your Exception Settings.

Often at program load (in many .NET frameworks), there will be exceptions which are fired which are completely harmless and correctly handled.

If this exception is bothering you then simply deselect 'Break when this exception is thrown' and hit Continue.



来源:https://stackoverflow.com/questions/39133760/could-not-load-file-or-assembly-clrcompression-xamarin-forms-uwp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!