How to publish ASP.NET Core app to ftp server

浪子不回头ぞ 提交于 2021-02-18 06:31:52

问题


Visual Studio publish only supports importing web deploy.

Is there a workaround?


回答1:


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/



来源:https://stackoverflow.com/questions/33672930/how-to-publish-asp-net-core-app-to-ftp-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!