title: Running a .NET core app (.dll) with cmd by using process.start
body: <p>I'm new to .NET Core 2.0, so i might be doing this all wrong, if so let me know.</p>
  
  <p>I have a .NET core 2.0 app that should be cross platform, hence the app is a .dll console application, and it does work fine on all platforms.</p>
  
  <p>I'm trying to implement kind of a watchdog, that in case of necessary process will duplicate itself, and by the same way it was called </p>
  
  <pre><code>&gt; $ dotnet process.dll
  </code></pre>
  
  <p>My code is:</p>
  
  <pre><code>var process = new Process
  {
     StartInfo = new ProcessStartInfo
     {
         FileName = "dotnet",
         Arguments = "path\release\PublishOutput\proces.dll"
         UseShellExecute = true,
         RedirectStandardOutput = false,
         RedirectStandardError = false,
         CreateNoWindow = true
       }
  
   };
  
   process.Start();
  </code></pre>
  
  <p>The problem is that when the process runs this code, i'm getting the following exception</p>
  
  <blockquote>
    <p>Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.0.0, Culture=neutral, PublicKeyToken=sometoken' or one of its dependencies. The system cannot find the file specified.</p>
  </blockquote>
  
  <p>I can't find any mention of ruining dotnet from code, and i don't know even if this is possible?</p>
  
  <p>Is it possible? Is .NET core process able to duplicate itself?</p>
  
  <p>Thanks </p>