如何使用 FTP 使用 File Zilla 发布 ASP.NET MVC 站点

How to publish ASP.NET MVC site with File Zilla using FTP

我在 Web 托管网站上创建了一个帐户,该网站仅允许使用 FTP 进行传输和上传。因此,我努力想弄清楚如何使用 FTP 发布我的网站。我尝试了 Visual studio 发布,但它没有用。现在我想使用 File Zilla 手动上传它。有谁知道要从我的解决方案(项目)上传哪些文件夹。有很多所以我很困惑。如果您还可以解释一下 SQL 服务器设置。我将非常感谢你。

  1. 将您的源代码发布到本地文件系统。

Right click on your App project and select Publish.

You will see Publish Web wizard.

In Profile tab -> Select New Profile from DropDownList and give profile name.

Next is Connection tab -> Select File System from Publish Method DropDownList.

Give path as Target Location where you would like to publish your source code.

  1. 从文件 zilla 复制粘贴/选择以上传。
  1. 在 Visual studio 中打开您的项目。右键单击您的主项目,然后单击发布
  2. 接下来 name.Click 创建一个新的配置文件。
  3. Select 将方法发布为文件系统。
  4. 还有Select你想save.Click下一个的位置。
  5. Select 配置为 Release-Any CPU.
  6. 点击发布。

现在您已经发布到第4步中您提供的位置了。

从该位置复制所有文件并使用 FTP 将其上传到您想要的网站目录。

了解更多信息。访问这个linkHow to Publish