...
Installing On Linux
To be honest, I don’t have a hell of a lot of experience with Linux. But the general gist is…
Instead of installing Microsoft.Extensions.Hosting.WindowsServices , you need to install Microsoft.Extensions.Hosting.Systemd . And then instead of calling UseWindowsService() you’ll instead call UseSystemd() .
Obviously your dotnet publish and installation commands will vary, but more or less you can create a “Windows Service” that will also run on Linux!
...
Комментариев нет:
Отправить комментарий