I'm building a .Net Core API which will be hosted on a Ubuntu based server. I'm installing the required packages I need on the server i.e. MySQL and Nginx, but I also need to install .Net Core of course for the application to run.
I found a tutorial example of how to setup and configure Nginx to work with the Kestrel server, but it entirely assumes you already have .Net Core installed on the machine it will be deployed on.
The .Net Core website only seems to instruct you to install the SDK, but this is for deployment, not development so it would make sense to install the .Net Core runtime instead, however when doing an
apt-cache search dotnet to find the specific package name, I found
dotnet-hosting-2.0.0 listed too which is described with "Microsoft .NET Core 2.0.0 Linux Server Hosting".
To sum this up, my question is simply this. To host a .Net Core application, do you use the
dotnet-hosting or the
dotnet-runtime package for deployment of a .Net Core application?