在CDN中部署ClickOnce应用程序 [英] Deploy ClickOnce app in a CDN

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

问题描述

您好,我遇到了ClickOnce部署应用的问题。我们已经使用ClickOnce多年了,它已经适用于我们的应用程序。


现在我们想要在CDN上托管其中一个应用程序,但是因为CDN中的UPDATING文件很难因为缓存,我们提出了一个重定向网址的想法,该网址将指向我们应用的最新版本。这样我们就可以将部署放在CDN
中并更新重定向网址以指向最新版本。


不幸的是,ClickOnce没有很好地处理这个设置。 / p>

下面是一个示例,但问题是:  我可以更改ClickOnce应用在安装后检查更新的位置吗?



示例:


重定向网址:mycompanysite.com/MyApp


我使用REDIRECT URL作为安装和更新网址创建部署。


假设我在 cdn.myapphosting.com/myappname/v1  并将重定向网址配置为指向它。当我安装应用程序时,该属性的值 

 ApplicationDeployment.CurrentDeployment.UpdateLocation 

是实际的.clication文件在cdn中的位置( cdn.myapphosting.com/myappname/v1/MyApp.application),而不是我期待的重定向网址它是。这意味着如果我想发布一个
更新版本,我将不得不更新cdn中的文件,这实际上并不可靠。


那么,是否有如何实现这一目标?  我可以以某种方式更改应用安装后的更新网址吗?



解决方案

您好,


>> 我可以以某种方式更改应用安装后的更新网址吗?


使用Mage.exe指定网址ClickOnce应检查更新。


请查看:
如何:为部署更新指定备用位置


最诚挚的问候,


Bob


Hello, I'm having a problem with a ClickOnce deployed app. We have been using ClickOnce for several years and it has worked fine for our apps.

Now we want to host one of the apps on a CDN, but since UPDATING files in the CDN is hard because of caching, we came up with the idea of having a redirect url that will point to the latest version of our app. That way we can put the deployments in the CDN and update the redirect url to point to the latest release.

Unfortunately, ClickOnce is not handling this set up very well.

Below is an example but the question is: can I change the location where a ClickOnce app checks for updates after it's installed?

Example:

Redirect url: mycompanysite.com/MyApp

I create the deployment using the REDIRECT URL as the installation and update url.

Let's say I deploy the app in cdn.myapphosting.com/myappname/v1 and configure the redirect url to point to it. When I install the app, the value for the property 

ApplicationDeployment.CurrentDeployment.UpdateLocation

is the actual location of the .application file in the cdn (cdn.myapphosting.com/myappname/v1/MyApp.application), and not the redirect url as I was expecting it to be. This means that if I want to release an updated version, I'll have to update the files in the cdn, which is not really reliable.

So, is there a way to accomplish this? Can I somehow change the update url AFTER the app is installed?


解决方案

Hi,

>>Can I somehow change the update url AFTER the app is installed?

Using Mage.exe to specify the URL where ClickOnce should check for updates.

Please check out: How to: Specify an Alternate Location for Deployment Updates

Best Regards,

Bob


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

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