title: Topshelf and .net core under linux
body: <p>I have a simple application that starts as a service using topshelf and it looks simple:</p>
  <pre><code> HostFactory.Run(x =&gt;
   {
      x.Service&lt;RequestService&gt;();
      x.RunAsLocalSystem();
   });
  </code></pre>
  <p>Well it works, but under windows. When I tried this under Linux I am getting:</p>
  <blockquote>
  <p>Topshelf.Runtime.Windows.WindowsHostEnvironment Error: 0 : Unable to get parent process (ignored), System.DllNotFoundException: Unable to load shared library 'kernel32.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libkernel32.dll: cannot open shared object file: No such file or directory</p>
  </blockquote>
  <p>Has someone came across this problem?
  I tried to google it but someone said it works other that it is tool only for windows.</p>
  <p>Or maybe there is some other service hoisting framework for .net core?</p>