I am trying to run a .net Core app on top of the .net Core Runtime, but in a Windows service.
I'm not trying to run the library on the full .net Framework (it wouldn't work anyway at the moment since it's ASP.net Core 2.0 Preview 1), and my next best attempt would be to use a System.Diagnostics.Process.
I'm really just trying to find a way to wrap a console application in the Start/Stop methods and authentication scheme of a Windows Service, but because that Console Application happens to be .net Core, I wonder if I can just Host the runtime itself (e.g., some P/Invoking). I know that C++ apps can host the full runtime, but I haven't seen if such a mechanism exists for .net Core.
Has anyone tried that? Maybe some C++/CLI magic if a pure C# approach wouldn't work?