悍妾当家txt下载,车厘子价格,龙腾海啸txt
wpf core发布有个文件发布选项:生成单个文件,自动升级就比较方便了。
一、下载新版本程序,保存为...exe~,并运行
process currentprocess = process.getcurrentprocess(); file.writeallbytes(currentprocess.mainmodule.filename + "~", buffer); process p = new process(); p.startinfo.filename = path.combine(pathdesktop, filename); p.startinfo.useshellexecute = false; p.start();
二、替换老版本并运行
if (currentprocess.mainmodule.filename.endswith("~")) { file.copy(currentprocess.mainmodule.filename, currentprocess.mainmodule.filename.trimend('~'), true); process p = new process(); p.startinfo.filename = currentprocess.mainmodule.filename.trimend('~'); p.startinfo.useshellexecute = false; p.start(); return; }
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Blazor server side 自家的一些开源的, 实用型项目的进度之 CEF客户端
.NET IoC模式依赖反转(DIP)、控制反转(Ioc)、依赖注入(DI)
vue+.netcore可支持业务代码扩展的开发框架 VOL.Vue 2.0版本发布
网友评论