如何重新启动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应用程序后,点击一次的更新(启动新的版本)
发布评论