Search code examples
c#.netcompiler-errorslinker

Process Class Not Found in System.Diagnostics? (System.dll???)


I am using .NET Framework 3.5, I have referenced all the assemblies, I have double checked everything, but still this irritating error

 CS0234: The type or namespace name 'Process' does not exist in the namespace               
 'System.Diagnostics' (are you missing an assembly reference?) (CS0234) (Proj1)

According to MSDN and various other sources, the Process class is definitely located in System.dll in the System.Diagnostics namespace. Then What In The World Is The Problem?


Solution

  • Ensure you are referencing the correct System.Dll. The version should be roughly v2.0.50727