已经using System.Diagnostics;
但在System.Diagnostics.Process.Start("cmd.exe ", " ");
中出现错误:
The type or namespace name 'Process' does not exist in the namespace 'System.Diagnostics' (are you missing an assembly reference?)

解决方案 »

  1.   

    除了using引用命名空间,你还需要为项目添加对DLL程序集的引用。在“解决方案管理器”里,打开项目名称下面的树,去添加引用。
      

  2.   

    可能需要添加dll程序集引用,如楼上所说。
      

  3.   

    没发现这个问题。
    System.Diagnostics.Process 放在 System.Dll 里
    你的using那里都没问题了,怎么还会找不到?
      

  4.   

    VS2011没用过,反正VS2008只要你新建项目自动using System
    using System.Diagnostics.Process后就不会出现你的问题
      

  5.   

    VS2011有这个版本?
    是不是VS11(内部版本号)
      

  6.   

    明白了,是.NET框架的改变,Windows Runtime神马的,看来得重新学习了。