问题
I want to restart my WPF Application programmitically; in windows Forms I used System.Windows.Forms.Application.Restart();
I have tried this :
private void Restart()
{
System.Diagnostics.Process.Start(Application.ResourceAssembly.Location);
Application.Current.Shutdown();
}
I have deployed my application with ClickOnce and its not working there. Any help would be great.
来源:https://stackoverflow.com/questions/23405848/what-is-the-right-way-to-restart-wpf-application