The only officially supported way of distributing an application is by running dotnet publish (same as for libraries). More info: https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish