如何将ASP.NET Core应用程序发布到ftp服务器

时间:2015-11-12 13:47:42

标签: asp.net visual-studio-2015 asp.net-core-mvc

Visual Studio发布仅支持导入Web部署。

有解决方法吗?

enter image description here

1 个答案:

答案 0 :(得分:5)

Visual Studio发布配置文件支持纯FTP作为目标。但它不支持SFTP。

您应该看到以下选项:

  • Web Deploy
  • Web部署包
  • FTP(不幸的是不支持SFTP)
  • 文件系统(UNC或本地路径)

自着名的ASP.NET 5后更新

项目的详细信息是ASP.NET 5 / vNext,目前在Visual Studio的UI中尚不支持FTP和Web Deploy。按照以下步骤导入FTP配置文件,有一个博客:

  1. 打开记事本并创建发布配置文件以保存到文件系统。

    <?xml version =" 1.0"编码=" UTF-8"> < publishData>   < publishProfile profileName =" FTP" publishMethod =" FTP" publishUrl =" FTP:// ftpaddress"的userName ="用户名" userPWD ="密码" destinationAppUrl =" HTTP:// wwwaddress" /> < / publishData>

  2. 选择"导入"来自发布目标并导入发布配置文件。

  3. 链接到博客:http://blog.discountasp.net/publishing-an-asp-net-5-vnext-application/