如何回滚ClickOnce应用程序? [英] How can I roll-back a ClickOnce application?

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

问题描述

是否有一种方法(hacky会做)允许用户返回的先前版本ClickOnce 网络部署的应用程序?



我已经查看了文档和API,但似乎没有办法。您可以有选择地选择是否要更新,但是一旦更新,似乎就无法退回。

解决方案

ClickOnce将使用您发送给他们的任何版本。如果您向他们发送旧版本,则它们将回滚到该旧版本。基础。实际上,我们可以让每个用户使用不同的版本。该应用程序甚至告诉数据库用户想要的版本,因此他们理论上可以更改其版本,然后只需重新启动该应用程序即可。



使用ClickOnce进行细粒度的版本控制


Is there a way (hacky will do) to allow a user to go back to a previous version of a ClickOnce network deployed application?

I've looked in the docs and API and there seems to be no way. You can selectively choose if you would like to update, but once updated there is, seemingly, no way back.

解决方案

ClickOnce will use whatever version you send them. If you send them an old version, they will rollback to that old version.

Back in May my buddy David wrote an article on how to do this on a per-user basis. We can literally have every user on a different version. The application even tells the database which version the user wants, so they could in theory change their version and then simply restart the application.

Fine Grained Versioning with ClickOnce

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

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