无法加载文件或程序集 System.Windows.Forms Version=2.0.0.0 [英] Could not load file or assembly System.Windows.Forms Version=2.0.0.0

查看:57
本文介绍了无法加载文件或程序集 System.Windows.Forms Version=2.0.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 10 上的通用 Windows 应用程序中使用第三方 dll(dll 代码不可用).当应用程序从第三方 dll 调用类构造函数时,我收到异常无法加载文件或程序集System.Windows.Forms 版本 = 2.0.0.0".我知道我们不能在 UWP 应用中使用 System.Windows.Forms 命名空间.我该如何解决问题?

I am using a third party dll (dll code not available) in a Universal Windows App on Windows 10. When the app call a class contructor form the third party dll, I am getting an exception "Could not load file or assembly System.Windows.Forms Version=2.0.0.0". I am aware that we can't use the System.Windows.Forms namespace in a UWP App. How Can I fix the problem?

推荐答案

不能在 UWP 应用中使用 Winforms 库.

You cannot use a Winforms library in an UWP app.

这篇关于无法加载文件或程序集 System.Windows.Forms Version=2.0.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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