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
---------------------


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM