c# - 可以将 System.Windows.Forms 添加到 WinRT 项目吗?

标签 c# winforms reference windows-8 windows-runtime

我想将使用 System.Windows.Forms 命名空间的类库添加到我的 Windows 8 应用程序。当我添加命名空间并构建解决方案时,出现一个错误:

 Cannot find type System.Resources.ResourceSet in module mscorlib.dll.

是否可以添加 System.Windows.Forms?

最佳答案

不,Windows 应用商店应用程序不支持 System.Windows.FormsHere是其中所有受支持的 .NET 命名空间和类的列表。

您不能只从 Windows 应用商店应用中引用现有的 .NET 程序集。它们需要是可移植类库或适用于 Windows 应用商店应用的类库。

关于c# - 可以将 System.Windows.Forms 添加到 WinRT 项目吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12663794/

相关文章:

c# - 保护只有一个用户的高值(value) C# 应用程序

c# - 如何在 C# 事件中执行 javascript

c# - 通过PHP脚本隧道连接MySQL

reference - ABAP中的#符号是什么?

java - 更改对象和垃圾收集器的引用

c# - 标签在 OnDraw 事件中动态创建并可从 Visual Studio Designer 编辑

C# HttpClient tor socks4/5 代理?

winforms - 在 WinForms MDI 中使用具有存储库模式的 Entity Framework

c# - 将命令行参数传递给我的应用程序的已运行实例

c# - 通过代码包含程序集? C#