当前位置:网站首页>C # use autoupdater NET
C # use autoupdater NET
2022-07-16 07:56:00 【Hometown 2130】
The scope of use is winform and WPF
1. Build a .net5 Of winform project , install Autoupdater.NET.Official

2. Add code under the button

AutoUpdater.Start("http://127.0.0.1/updates/AutoUpdaterStarter.xml");3. establish AutoUpdaterStarter.xml, You can refer to GitHub above
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>10.0.0.0</version>
<url>http://127.0.0.1/downloads/1.zip</url>
<changelog>http://127.0.0.1/updates/UpdateLog.html</changelog>
<mandatory>false</mandatory>
</item>The version here must be larger than the version of the software
4. establish UpdateLog.html, The contents are written casually
<html>
<body>
<h1>
UpDate
</h1>
</body>
</html>5. All files display

Update one or more internal dll You also need to compress , Just pack it together .
Be careful : This must be zip Format , Otherwise, the report will be wrong .
6. stay IIS The above release can run

7. function , Click Update to , After the update is complete , Automatic restart .


8.WPF As like as two peas

You can also use the database to update .
GitHub:https://github.com/ravibpatel/AutoUpdater.NET Reference resources
边栏推荐
猜你喜欢

Why is it said that the testing post is a giant pit? The 10-year-old tester told you not to be fooled~

Byte test director stayed up for 10 days, and the test post interview script came out of the liver, giving you wings to your big factory dream~

OSPF实验

CentOS 7X 安装Mysql 数据库

C notes - basics, Q & A, WPF

XPath超详细总结

How to apply @transactional transaction annotation to perfection?

XPath ultra detailed summary

Number system conversion and subnet Division

Redis主从集群搭建及哨兵模式配置
随机推荐
The experience of finding a job after coming out of the software testing training class taught me these five things
C#使用TcpListener进行聊天通信
POI framework learning - Import and export cases
C#笔记-C#7.0 Essential
I2C protocol
源码编译装redis
After 3 months of job hunting, most resumes are dead in the sea. When it comes to manual testing, they shake their heads again and again ~ it's too difficult
Re regular expression
Data storage and disaster recovery (2nd Edition) editor in chief Lu Xianzhi Wu Chunling comprehensive training answer
Day 10 of leetcode
Day 7 of leetcode question brushing
全排列next_permutation()函数
Introduction to C language compiler
"Why do you want to resign, Tencent, which broke its head?"
Day 16 of leetcode
几行代码就能实现复杂的 Excel 导入导出,这个工具类真心强大!
It is said that the salary of software testing is high, so how can the monthly salary of software testing exceed 10K
Day 13 of leetcode + day 3 of DL
重发布实验
GoFrame Step by Step Demo - P1