Running a .Net Core console application

Locally your IDE does the work for you but when you run the console application on a remote server you need to check the following:

  1. Publish your application
    1. Right click the project and select publish
    2. Copy to the contents of ‘PublishOutput’ remote server, example ‘C:\Data\Application A
    3. Update the ‘appsettings.json’ with your production settings (if relevant)
  2. On the remote server
    1. Download the .Net Core SDK at
    2. Add ‘C:\Program Files\dotnet’ to your current users ‘Environment Variables’ under “Path”
    3. Run your the application with dotnet library.dll where library.dll is the name of your assembly name.

Run your the application

Environment Variables


Leave a Reply