部署ClickOnce应用程序到多个服务器 [英] Deploying a ClickOnce application to multiple servers

查看:161
本文介绍了部署ClickOnce应用程序到多个服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在寻找使用的ClickOnce部署作为分发我们的应用程序的一种手段。然而,由于问题的带宽,我们需要将应用程序部署到多个服务器的网络上,而不是只是一个。

We're looking at using ClickOnce deployment as a means of distributing our application. However, due to problems with bandwidth, we would need to deploy the application to multiple servers on the network rather than just one.

我在一家银行工作,我想推出一个 WPF 客户端我们所有的分支机构,但分支机构网络速度太慢让应用程序检查中央服务器每天更新,虽然我们确实希望它来检查每个应用程序运行时间。每个分支都有自己的服务器,所以我希望能够在这里部署客户端,这些分支服务器,而不是服务器的主要办公室。

I work for a bank and am wanting to roll out a WPF client to all of our branches, but the branch network is too slow to have the application check a central server each day for updates, although we do want it to check each time the application is run. Each branch has their own server, so I'd like to be able to deploy the client to these branch servers rather than a server here in the main office.

这是可以做到使用ClickOnce?我将不得不使用命令行来做到这一点与的MSBuild 还是可以实现的,从做一个 TFS 建设项目?

Is this possible to do with ClickOnce? Would I have to use the command line to do this with MSBuild or is it achievable to do this from within a TFS Build project?

推荐答案

我已经建立了分布在使用ClickOnce互联网的商业产品。它是从一个单一的服务器分布,虽然,不多个服务器如在方案中。

I have built a commercial product that is distributed over the Internet using ClickOnce. It is distributed from a single server, though, not multiple servers as in your scenario.

我会说,你想要做什么可以做。问题是,应用程序需要知道哪些分支服务器检查更新,并清单必须有部署URL(在本地的分支服务器)嵌入其中。因此,看来,你必须做一个单独的构建为每个分支服务器。这可能是很容易使用的MSBuild 自动化,但是我对此没有经验。

I'd say that what you want to do can be done. The problem is that the application will need to know which branch server to check for updates, and the manifest will have to have the deployment URL (on the local branch server) embedded in it. It therefore seems that you'll have to do a separate build for each branch server. It is probably easy to automate using MSBuild, but I have no experience with that.

一个有用的参考是的 智能客户端部署使用ClickOnce由布赖恩·诺伊斯

A useful reference is Smart Client Deployment with ClickOnce by Brian Noyes.

这篇关于部署ClickOnce应用程序到多个服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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