winform自动更新之AutoUpdater.NET

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zhaobw831/article/details/82226291
使用AutoUpdater.NET对winform程序进行自动更新
介绍
AutoUpdater.NET是一个.NET平台下桌面应用程序的一个自动升级类库,开源在Github类似工具还包括微软的ClickOnce

使用
PM> Install-Package Autoupdater.NET.Official

更新服务器上的xml配置:

<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>2.0.0.0</version>
<url>http://127.0.0.1/downloads/Test-2.0.0.0.zip</url>
<changelog>http://127.0.0.1/changelog.html</changelog>
<mandatory>false</mandatory>
</item>
1
2
3
4
5
6
7
其中url节点表示新的程序包的地址,changelog表示更新日志,mandatory表示是否强制更新,其他更多属性见Github

C#中的使用:

using AutoUpdaterDotNET;

AutoUpdater.Start("http://rbsoft.org/updates/AutoUpdaterTest.xml");
1
2
3

Demo

Issue
---------------------

posted @ 2018-11-21 22:04  左正  阅读(3551)  评论(0编辑  收藏  举报