简体   繁体   English

推荐Visual Studio FTP部署插件

[英]Recommend a Visual Studio FTP deployment plug-in

we've recently stumbled across the excellent Dispatch for ASP FTP deployment plug in. It looks great apart from one thing: It doesn't work with Visual Studio 2010 , at least for us, anyway. 我们最近偶然发现了出色的Dispatch for ASP FTP部署插件。它看起来与众不同:一方面,它不适用于Visual Studio 2010 ,至少对我们而言。 (It's supposed to work fine.) 应该工作正常。)

(Yes, we've tried everything: We've managed to get Dispatch working for another FTP site, but not the main one we regularly deploy to. We have managed to connect to our main site through FileZilla FTP, so the site itself is configured correctly. All settings have been triple checked, but the software still throws up weird errors (always to do with its internal libraries).) (是的,我们已经尝试了所有方法:我们设法使Dispatch可以在另一个FTP站点上运行,但不能正常部署到另一个FTP站点上。我们已经设法通过FileZilla FTP连接到我们的主站点,因此该站点本身就是正确配置。所有设置都经过了三重检查,但是该软件仍然会引发奇怪的错误(始终与内部库有关)。

So does anyone know of any other comparable FTP-based, deployment plug-in for Visual Studio? 那么,有谁知道Visual Studio的其他任何类似的基于FTP的部署插件吗?

Here's what Dispatch does (and so any suggested replacement must do): 这是Dispatch的工作(因此,任何建议的替换都必须这样做):

  • Monitor any altered files in the project. 监视项目中所有更改的文件。 When a file is changed, it's added to a list of files to be deployed. 更改文件后,会将其添加到要部署的文件列表中。
  • To deploy these files to the live site, all we need to do is click "Upload" and the plugin will connect via FTP to our live site and upload the selected files. 要将这些文件部署到实时站点,我们需要做的就是单击“上传”,该插件将通过FTP连接到我们的实时站点并上传所选文件。
  • We can filter out any filenames we don't want to be monitored/uploaded (eg .cs or web.config or /Images/ , etc.) 我们可以过滤掉不想被监控/上传的任何文件名(例如.cs或web.config或/ Images /等)

I think that's all the features that we need. 我认为这就是我们需要的所有功能。 Thanks for any suggestions! 感谢您的任何建议!

Note: If you're wondering why we need such a service, it's because we deploy many site changes over the course of a single day. 注意:如果您想知道我们为什么需要这样的服务,那是因为我们在一天的时间内部署了许多站点更改。 Publishing the entire project to a folder, zipping it up, then FTPing that zip file, only to have to unzip it, and then install the entire project into the live wwwroot takes far too long. 将整个项目发布到一个文件夹中,然后将其压缩,然后通过FTP将该zip文件进行FTP,仅需将其解压缩,然后将整个项目安装到实时wwwroot中就花费了太长时间。 With Dispatch you're able to upload individual files in a single click. 使用Dispatch,您可以单击一次上传单个文件。

After much back and forth between me and the creator of Dispatch, we managed to narrow down the problem to the library he was using ( Rebex FTP ). 经过我和Dispatch的创建者之间的反复交流,我们设法将问题缩小到他正在使用的库( Rebex FTP )。 I posted a question about the issue on the Rebex forums, and it was revealed that their software might have a bug with IIS7.5 . 我在Rebex论坛上发布了有关此问题的问题,结果表明他们的软件可能存在IIS7.5错误。 They suggested a quick hack/fix, which I tested and discovered worked. 他们提出了一个快速的破解/修复程序,我进行了测试,发现该方法可行。

Mr. Dispatch then quickly implemented this hack/fix into his software, and lo! 然后,Dispatch先生迅速将此黑客/修复程序实施到了他的软件中,瞧! I had a fully working copy of Dispatch... So no need for a replacement any more! 我有一份Dispatch的完整工作副本…… 因此不再需要更换!

(And from what I've seen, there isn't even any other plug-ins offering this functionality, so it's just as well.) (从我所看到的来看,甚至没有其他插件可以提供此功能,所以也是如此。)

Just an update - Dispatch does not work with VS 2013 so if you have VS 2012 with Dispatch installed, Keep it. 只是一个更新-Dispatch不适用于VS 2013,因此,如果您安装了带有Dispatch的VS 2012,请保留它。 Also the website is gone so it looks like all development has ceased. 该网站也消失了,因此似乎所有开发都已停止。 I have been using Dispatch since VS2005 and it has been great for just sending single files up when I need to. 自VS2005以来,我一直在使用Dispatch,它非常适合在需要时仅发送单个文件。 Too bad it is gone. 可惜它不见了。

I built a very simple one for myself - you right click the file in Solution Explorer and it then uploads that file based on a settings file you create. 我为自己构建了一个非常简单的文件-您在解决方案资源管理器中右键单击该文件,然后根据您创建的设置文件上传该文件。

It's super crude but it works and the source is there to make it better if you like - 它超级粗糙,但是可以用,如果您愿意,可以使用它来改善它-

https://github.com/garazy/vs-2017-ftp-upload https://github.com/garazy/vs-2017-ftp-upload

Big enhancements have been added to VS2008, VS2010, VS2012. VS2008,VS2010,VS2012已添加了重大增强功能。 Below is the article. 下面是文章。 I found that Microsoft did all the above while I was searching. 我在搜索时发现Microsoft完成了上述所有操作。 Since this came up high in what I was searching, thought should share this knowledge. 由于这是我所寻找的重点,因此思想应该分享这些知识。

Deploy a Web Application Project Using One-Click Publish Without Web Deploy 使用一键发布无需Web部署即可部署Web应用程序项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM