我使用的.NET Framework 3.5,我引用的所有程序集,我有双重检查一切,但还是这个恼人的错误在System.Diagnostics中找不到过程类? (System.dll中???)
CS0234: The type or namespace name 'Process' does not exist in the namespace
'System.Diagnostics' (are you missing an assembly reference?) (CS0234) (Proj1)
根据MSDN和其他各种来源,Process类肯定位于System.Diagnostics名称空间中的System.dll中。那么世界上是什么是问题?
System.dll在您的项目和正确的版本中被明确引用? (v2.0.50727) –
针对Silverlight或其他 - 你也问了很多单声道问题。 –
您是否尝试过在Visual Studio中创建新项目并检查您是否能够引用Process类? – Trainee4Life