System.Diagnostics.Process namespace missing

brunoos picture brunoos · Mar 6, 2012 · Viewed 10.6k times · Source

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??

Answer

jpobst picture jpobst · Mar 6, 2012

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.