c# - 缺少 System.Diagnostics.Process 命名空间

标签 c# mono system.diagnostics moonlight

我正在编写一个应用程序,我必须在其中使用 Process.Start api 使用 System.Diagnostics 命名空间。我在 mono-2.10 中使用 moonlight 库。但是我收到了这个错误

"The type or namespace name `Process' could not be found. Are you missing a using directive or an assembly reference?"

我想知道月光构建中的 mscorlib.dll 程序集是否缺少 System.Diagnostics 命名空间??

最佳答案

System.Diagnostics.Process 在 Silverlight API 中不可用。因此,它在 Moonlight API 中也不可用。如果要使用 Process,则需要使用完整的 .NET 框架 BCL。

关于c# - 缺少 System.Diagnostics.Process 命名空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9577876/

相关文章:

c# - MVC3 Unobtrusive Validation 在 Ajax 调用后不起作用

c# - 使用 MSTest 属性

c# - 如何解析此 HTML 以获得我想要的内容?

Monodevelop + GTK# 设计模式

c# - 应用程序未从生产 Web 服务器运行

c# - 如何访问直接操作界面

c# - Mono c# TextRenderingHint.SingleBitPerPixelGridFit Windows 与 Linux

.net - Mac OS X Mono 和 MySql 连接器问题

c# - 将 Trace 方法添加到 System.Diagnostics.TraceListener

c# - .NET Process Start Process Error using credentials (句柄无效)