重新启动WPF应用程序后,点击一次的更新(启动新的版本)

编程入门 行业动态 更新时间:2024-10-28 08:29:29
本文介绍了重新启动WPF应用程序后,点击一次的更新(启动新的版本)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何重新启动WPF应用程序已经使用更新后,点击一次,我要开始新的版本!

How to restart WPF application after it has been updated using click-once, i need to start the new version!

推荐答案

有几个方法,但大部分不能正常工作,他们最终重新打开旧版本。

There are a few ways but most don't work correctly, they end up reopening the old version.

这将听起来很疯狂的WPF没有一个正确的的方法来处理它(#fixwpf),但你需要引用 System.Windows.Forms.dll中和呼叫 System.Windows.Forms的。 Application.Restart();

It's going to sound crazy that WPF doesn't have a proper way to handle it (#fixwpf), but you'll need to reference System.Windows.Forms.dll and call System.Windows.Forms.Application.Restart();

一个快速搜索发现罗布Relyea的帖子同样的事(XAML,WPF微软人) robrelyea.wordpress/2007/07/24/application-restart -for-WPF /

A quick search found Rob Relyea's post about the same thing (XAML, WPF Microsoft Guy) robrelyea.wordpress/2007/07/24/application-restart-for-wpf/

更多推荐

重新启动WPF应用程序后,点击一次的更新(启动新的版本)

本文发布于:2023-10-23 01:32:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1519342.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重新启动   应用程序   版本   WPF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!