无法加载文件或程序集'clrcompression,xamarin形成UWP [英] Could not load file or assembly 'clrcompression, xamarin forms UWP

查看:119
本文介绍了无法加载文件或程序集'clrcompression,xamarin形成UWP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在OnLaunched期间在Xamarin.Forms.Forms.Init(e);该应用程序抛出 System.IO.FileNotFoundException无法加载文件或程序集'clrcompression,

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

我具有以下依赖性

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

所有用于uwp的xamarin示例应用程序都可以正常运行.

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

更新:该异常现在消失了,原因未知.唯一已知的区别是我添加了xlabs依赖项,然后将其删除. 我认为这触发了损坏的依赖关系图的重建?!

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.

推荐答案

如果您在例外设置"中启用了所有通用语言运行时例外",则会发生这种情况.

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

通常在程序加载时(在许多.NET框架中),会引发完全无害且正确处理的异常.

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.

这篇关于无法加载文件或程序集'clrcompression,xamarin形成UWP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆