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:
- Publish your application
- Right click the project and select publish
- Copy to the contents of ‘PublishOutput’ remote server, example
C:\Data\Application A
- Update the ‘appsettings.json’ with your production settings (if relevant)
- On the remote server
- Download the .Net Core SDK at https://www.microsoft.com/net/download/windows
- Add ‘C:\Program Files\dotnet’ to your current users ‘Environment Variables’ under “Path”
- Run your the application with
dotnet library.dll
wherelibrary.dll
is the name of your assembly name.