Skip to main content
 首页 » 编程设计

c#之添加对我的项目的引用但无法使用它

2024年02月13日11findumars

我正在使用 C# 开发 Windows CE 设备应用程序。

当我将引用 System.Deployment 添加到我的项目时,它应该允许我添加 Namespace: System.Drawing.Printing。

当我展开引用时,我可以在那里看到 System.Deployment,但是当我想添加 Namespace: System.Drawing.Printing 时,出现错误:

The type or namespace name 'Printing' does not exist in the namespace 'System.Drawing' (are you missing an assembly reference?)

我做错了什么?

我做了一些研究,但找不到解决方案。

请您参考如下方法:

您应该添加对 System.Drawing 程序集的引用而不是 System.Deployment

在 msdn System.Drawing 上阅读有关此命名空间的更多信息