无法加载文件或程序集 System.Windows.Forms Version=2.0.0.0

无法加载文件或程序集 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.