Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to publish ASP.NET Core app to ftp server

Visual Studio publish only supports importing web deploy.

Is there a workaround?

enter image description here

like image 779
Halid Avatar asked Nov 12 '15 13:11

Halid


People also ask

How do I publish a net core API?

We have everything ready on the server and the IIS to run our website, so we just need to publish our ASP.NET Core Web API publish files to our empty folder on the server. press next, then put the path as the new folder within your server (if the new folder is accessible via a shared link from your machine).


1 Answers

Visual Studio publishing profiles supports pure FTP as a target. It does not support SFTP however.

These are the options you should see:

  • Web Deploy
  • Web Deploy Package
  • FTP (does not support SFTP unfortunately)
  • File System (UNC or local path)

Update since noted ASP.NET 5

With the details that the project is ASP.NET 5 / vNext, at this time, FTP and Web Deploy are not supported yet in the UI of Visual Studio. There's a blog out there following these steps to import an FTP profile:

  1. Open notepad and create a publishing profile to save to your file system.

    <?xml version="1.0" encoding="utf-8"?> <publishData> <publishProfile profileName="FTP" publishMethod="FTP" publishUrl="ftp://ftpaddress" userName="username" userPWD="password" destinationAppUrl="http://wwwaddress" /> </publishData>

  2. Select "Import" from the publish targets and import the publishing profile.

Link to Blog: http://blog.discountasp.net/publishing-an-asp-net-5-vnext-application/

like image 189
Jason W Avatar answered Nov 01 '22 05:11

Jason W