How to publish an ASP.NET Core application for ftp server

Visual Studio Publishing only supports name import.

Is there a workaround?

enter image description here

+6
source share
1 answer

Visual Studio publishing formats support pure FTP as the target. However, it does not support SFTP.

These are the parameters you should see:

  • Web deployment
  • Web deployment package
  • FTP (unfortunately does not support SFTP)
  • File system (UNC or local path)

Update from tagged ASP.NET 5

With the details that the project is an ASP.NET 5 / vNext, FTP and web deployment are not yet supported in the Visual Studio user interface. Where there is a blog, follow these steps to import an FTP profile:

  • Open Notepad and create a publication profile to save it 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 >

  • Select "Import" from the publication goals and import the publication profile.

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

+5
source

All Articles