I am building a .net core app in Visual Studio 2017. I would like to automate my the publishing process to a linux machine.
This is my current process:
- In Visual Studio, click Publish tab, select Publish
- Open
WinSCP, login to target linux machine - Open the folder
solution\myapp\bin\Release\netcoreapp2.2\publish\ - CTRL+A select all in publish folder, CTRL+C copy all the files, then CTRL+V paste in
WinSCPtarget directory - Open
PuTTY, login to target linux machine, restart the app usingdotnet myapp.dll
Could I automate these steps when publishing from Visual Studio?