且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在发布升级时通知客户端进行更新?

更新时间:2022-04-01 21:58:04

最简单的方法是将代码添加到您的应用程序的启动中,该应用程序访问您的站点并通过WCF或仅通过加载报告可用版本信息的小型特殊网页来获取最新的更新信息。然后,您的软件告诉用户而不是正常启动,并为他提供下载和更新的选项或正常继续。
The easiest way is to add code to the startup of your app which accesses your site and fetches the latest update info, either via WCF or just by loading a small special webpage which reports the version info available. Your software then tells the user instead of starting normally, and gives him the option to download and update or continue as normal.