ASP.NET 5 Process.Start?

I am trying to use an Process.StartASP.NET Beta8 project that I would like to use to work on Linux. Pure core. Visual Studio gives me an error at compile time:

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

Going back and hovering the mouse over Process.StartI see a message saying that "DNX core 5.0 is unavailable." Is there any other way to call processes in asp.net 5? Or perhaps this is not yet possible?

Here is how I use it:

var p = Process.Start("someprog", "someargs");
p.WaitForExit();
+4
source share
1 answer

Thus, I really did not know how the new project system for .net works. I needed to add a dependency to my project.json:

"frameworks": {
    "dnx451": { },
    "dnxcore50": {
      "dependencies": {
        "System.Diagnostics.Process": "4.1.0-beta-23409"
      }
    }
  },

. , .

+8

Source: https://habr.com/ru/post/1616391/


All Articles