当前位置:网站首页>C#使用Autoupdater.NET
C#使用Autoupdater.NET
2022-07-13 18:09:00 【故里2130】
使用范围是winform和WPF
1.建立一个.net5的winform项目,安装Autoupdater.NET.Official

2.按钮下面增加代码

AutoUpdater.Start("http://127.0.0.1/updates/AutoUpdaterStarter.xml");3.建立AutoUpdaterStarter.xml,可以参考GitHub上面
<?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>这里的版本一定要大于软件运行的版本
4.建立 UpdateLog.html,里面内容随便写
<html>
<body>
<h1>
UpDate
</h1>
</body>
</html>5.所有文件显示

更新内部的某一个或者几个dll也需要进行压缩即可,一起打包即可。
注意:这里一定要是zip格式,否则报错 。
6.在IIS上面发布能运行即可

7.运行,点击更新即可,更新完成后,自动重启。


8.WPF一模一样

还可以使用数据库的方式进行更新。
边栏推荐
猜你喜欢

华为全连MGRE与星型拓扑MGRE(全网状与非全网状)

一次简单的 JVM 调优,拿去写到简历里

XPath超详细总结

How to write test cases for initial testing? Take you to write a qualified test case from three aspects

Huawei all connected mGRE and star topology mGRE (full mesh and non full mesh)

POI框架学习-导入导出案例

Interface test and interface test automation

Transport layer protocol

Redis只能做缓存?太out了!

利用 Redis 的 sorted set 做每周热评的功能
随机推荐
Layer 3 switching and VRRP
4年测试工程师经历,下一步转开发还是继续测试?
Day 14 of leetcode
Why is it said that the testing post is a giant pit? The 10-year-old tester told you not to be fooled~
递归实现组合型模型
还在使用 MySQL 中使用枚举?这些陷阱一定要注意!
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~
1. Stm32f4 USB protocol research - USB protocol
How to write test cases for initial testing? Take you to write a qualified test case from three aspects
nodejs使用multe实现文件上传,并将文件存储在服务器
Day 6 of DL
V891-z3735f redo system, drive repair summary
Day 6 of leetcode question brushing
wordpress中文网站代码下载
Automatically back up mysql. And keep the case for 7 days
Edge calculation kubeedge+edgemash
Network layer protocol
c语言编译器介绍
Introduction to C language compiler
nacos安装教程