title: Deploy .net core app to linux in visual studio?
body: <p>I am building a .net core app in Visual Studio 2017. I would like to automate my the publishing process to a linux machine.</p>
  
  <p>This is my current process:</p>
  
  <ol>
  <li>In Visual Studio, click Publish tab, select Publish</li>
  <li>Open <code>WinSCP</code>, login to target linux machine</li>
  <li>Open the folder <code>solution\myapp\bin\Release\netcoreapp2.2\publish\</code></li>
  <li><kbd>CTRL</kbd>+<kbd>A</kbd> select all in publish folder, <kbd>CTRL</kbd>+<kbd>C</kbd> copy all the files, then <kbd>CTRL</kbd>+<kbd>V</kbd> paste in <code>WinSCP</code> target directory</li>
  <li>Open <code>PuTTY</code>, login to target linux machine, restart the app using <code>dotnet myapp.dll</code></li>
  </ol>
  
  <p>Could I automate these steps when publishing from Visual Studio?</p>