System.Diagnostics.Process namespace missing

12k views Asked by At

I am writing an application where I have to use Process.Start api using System.Diagnostics namespace. I am using moonlight libraries with mono-2.10. But I am getting this error

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

I want to know is the System.Diagnostics namespace missing from the mscorlib.dll assembly in moonlight build??

2

There are 2 answers

0
M.Babcock On

Even though mscorlib is missing System.Diagnostics (which by itself is suspicious), the System.Diagnostics.Process class lives in System.dll (not mscorlib.dll).

2
jpobst On

System.Diagnostics.Process is not available in the Silverlight APIs. Therefore it is also not available in the Moonlight APIs. If you want to use Process, you will need to use the full .NET framework BCL.