English 中文(简体)
我如何更新一个已部署的点击程序而不必重新下载每个文件?
原标题:How do I update a deployed clickonce application without having to redownload every file?
  • 时间:2012-05-24 14:34:01
  •  标签:
  • clickonce

我有一个包含我正在运行的数据库的应用程序。 我添加了所有我需要的 dll s、 exe s 和 db 文件。 这些是不会编辑的内容 。 因此我把它们的构建动作设置为“ 内容”, 并将它们复制到输出目录的“ 如果更新, 复制到新版本 ” 。 有了这个程序, 每次我发布新版的应用程序, 我只略微更改一个文件, 但仍然把所有的文件都重新下载。 我在这里查看了这里, 显然所有文件都有一个杂件。 但是它们似乎没有给我一个答案, 说明我如何能够出版一个应用程序的新版本, 并且终端用户只下载已经更改的文件?

最佳回答

正如您所指出的, 文件是散列的。 安装更新时, ClickOce 对照本地版本检查服务器上的文件, 如果它们相同, 它不会再次下载它们, 它会从本地目录复制它们 。

我相信这只对集会有效。 如果您查看您的 ClickOence 缓存, 您就会发现您部署的每个集合都复制到自己的文件夹中, 这有点像 ClickOence 使用的迷你缓存, 这是它做比较时要检查的 。

其它资源可能也会发生,但我不敢打赌。正如埃格汉克所指出的,你可以用小提琴手来验证这一点。

问题回答

您确定不更改的文件是否正在再次下载? 使用小提琴手来检查, ClickOce 下载对话框总是通过下载大小显示所有文件正在重新下载,但情况并非总是这样。





相关问题
Change namespace of a deployed clickonce application

I made a bit of a namespace spelling mistake and I wish to correct it. My application currently uses Application.Settings to store a bulk of the user s information. If I refactor my namespace to be ...

which certificate is used by smartclient application

I have an .net smartclient application OA.Smart.WinUI. I have three .pfx files listed in this project OA.Smart.WinUI_1_TemporaryKey.pfx,OA.Smart.WinUI_2_TemporaryKey.pfx,OA.Smart.WinUI_TemporaryKey....

ClickOnce application deployment woes

I have a ClickOnce WPF application which is launched from a page on a web site. The URL parameters used to invoke the application tell the application what IP address to communicate with plus some ...

Making a single ClickOnce installer for two applications

I am using Visual Studio C# 2008 Express Edition. I have a Solution that has several projects, most of which are class libraries but two of which are executable projects (a GUI and a command-line ...

Configuration file with ClickOnce deployment

I ve been trying to modify my application to deploy and update using ClickOnce. I ve managed to get the program working but I m having trouble with the program configuration. My program uses a custom ...

Click Once Migrate URL

I have a Click Once App that has been published to the same location for a couple years, I now want to post an update to the program but want to migrate it to another url, is it a 2 step deployment? ...

热门标签