/Knowledge_Base

Just my own .Net development knowledge base.

Primary LanguageC#

Knowledge_Base

Just my own .Net and JS development Knowledge Base.


To run a .NET Core console application on Linux

  1. Publish your application as a self contained application:

dotnet publish -c release -r ubuntu.16.04-x64 --self-contained

  1. Copy the publish folder to the Ubuntu machine

  2. Open the Ubuntu machine terminal (CLI) and go to the project directory

  3. Provide execute permissions:

chmod 777 ./appname

  1. Execute the application

./appname