WPF程序自动重启
解决重开新程序,但老程序不会关闭的问题。
System.Windows.Forms.Application.ExitThread();
System.Windows.Forms.Application.Exit();
System.Windows.Forms.Application.Restart();
Process.GetCurrentProcess().Kill();
解决重开新程序,但老程序不会关闭的问题。
System.Windows.Forms.Application.ExitThread();
System.Windows.Forms.Application.Exit();
System.Windows.Forms.Application.Restart();
Process.GetCurrentProcess().Kill();