我正在编写一个应用程序,我必须在其中使用 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/