我需要人们对如何更新通过FTP ClickOnce应用程序的意见 [英] I need people's opinion on how to update a ClickOnce application through FTP

查看:902
本文介绍了我需要人们对如何更新通过FTP ClickOnce应用程序的意见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是通过数据库运行C#应用程序,它正在由不同的人在不同的位置。

I have a C# application which is run through a database, and it is being used by different people in different locations.

要更新的最简单有效的方法我每个应用程序有变化的时间是创建一个ClickOnce应用程序并将其发布到服务器。我的问题是,我可以有唯一的服务器是一个FTP服务器,这里的问题是,的ClickOnce不支持获取从FTP服务器更新。它支持更新到文件共享或虚拟主机。

The easiest and best way to update my application every time there is a change was to create a ClickOnce application and publish it to a server. My problem is that the only server I can have is an FTP server and the problem here is that ClickOnce doesn't support to get updates from the FTP server. It supports updating to a file share or web hosting.

所以,我需要,我应该如何更新我的应用程序的一些意见。是否有通过HTTP访问FTP服务器的机会吗?例如,而不是键入myftp服务器键入通过http类似于FTP,它会重定向到FTP服务器。这将保存所有的喧嚣。

So I need some opinion on how should I update my application. Is there a chance to access the FTP server through HTTP? For example, instead of typing myftp server to type in something like ftp through http, and it will redirect to the FTP server. This would save all the hustle.

顺便问一下有没有使用45.webmasters.com作为网站主办服务人员?这是我的网站主办服务,我可以存储在网站上的项目文件。就像我可以创建一个目录,并保存在那里的应用程序的文件,但我不知道如何该目录编程方式访问,以便在该位置发布。

By the way are there people using 45.webmasters.com as a webhosting service? It is my webhosting service and I can store items files on the website. Like I can create a directory and save the application's files in there, but I don't know how to access this directory programmatically so that to publish in that location.

推荐答案

你有使用你的服务器

如果不是,我建议你考虑使用的 Dropbox的为您的托管商 - 它是免费的,您的应用程序可通过HTTP和发布它,因为它发布到本地文件夹的Dropbox一样容易

If not I suggest you look into using Dropbox as your hoster - it's free, your application is available through HTTP and publishing it is as easy as publishing it to your local Dropbox folder.

我已经使用了一段时间这种方法了。当然你也可以使用其他服务 - 或者一个免费的托管商。 ( AppHarbor 想到的。)

I've been using this method for some time now. Of course you can use other services - or maybe a free webhoster. (AppHarbor comes to mind.)

在情况下,链接在注释不工作了,关键点得到这个工作是:

In case the link in the comment doesn't work any more, the key points to get this to work are:


  1. 找到你的公开网址(左点击任何在你的Dropbox文件,复制公开链接),它会与开始的 的http:// DL。 dropbox.com/u/xxxxxx/ 的。

  2. 打开,在Visual Studio中的项目属性发布-Tab。


    • 作为发布文件夹位置使用本地路径到你的Dropbox(子文件夹),通常的Windows&NBSP下; 7类似于 C:/用户/<使用者> /我的Dropbox /公共(你可以使用任何你想要的子文件夹)

    • 安装文件夹位置:这点 http://dl.dropbox.com/u/xxxxxx/ <子文件夹>

    • 更新位置:同一交易上面, HTTP ://dl.dropbox.com/u/xxxxxx/ <子文件夹>

  1. Find your public URL (left click any file in your Dropbox, copy public link), it will start with "http://dl.dropbox.com/u/xxxxxx/".
  2. Open the "Publish"-tab in your projects properties in Visual Studio.
    • As "Publishing Folder Location" use the local path to your Dropbox (subfolder), which usually under Windows 7 looks similar to C:/Users/<User>/My Dropbox/Public (you can use any subfolder you want)
    • "Installation Folder Location": Point it to http://dl.dropbox.com/u/xxxxxx/< subfolders >
    • "Update Location": Same deal as above, http://dl.dropbox.com/u/xxxxxx/< subfolders >

由Michael S.克拉克描述的步骤的博文。

这篇关于我需要人们对如何更新通过FTP ClickOnce应用程序的意见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆