ASP.NET 5 Process.Start?

Geo*_*son 4 c# asp.net asp.net-core

我试图Process.Start在ASP.NET Beta8项目中使用,我希望能够使用.Net核心在Linux上运行.Visual Studio在编译时给出了一个错误:

Error CS0103 The name 'Process' does not exist in the current context

回过头来,将鼠标悬停在Process.Start我身上,我可以看到一条消息"DNX core 5.0 not available".在asp.net 5中有不同的方法来调用进程吗?或者这可能还不可能?

这正是我使用它的方式:

var p = Process.Start("someprog", "someargs");
p.WaitForExit();
Run Code Online (Sandbox Code Playgroud)

Geo*_*son 8

所以我真的不知道新项目系统如何适用于.net.我需要为我的project.json添加一个依赖项:

"frameworks": {
    "dnx451": { },
    "dnxcore50": {
      "dependencies": {
        "System.Diagnostics.Process": "4.1.0-beta-23409"
      }
    }
  },
Run Code Online (Sandbox Code Playgroud)

添加这个使它编译.虽然我不确定该版本号是否正确.