Restart WPF application after click-once update (start the new version)

后端 未结 6 2098
一整个雨季
一整个雨季 2020-12-14 02:24

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

6条回答
  •  一向
    一向 (楼主)
    2020-12-14 02:55

    right click on references in solution explorer > click add reference > click on assemblies > search and add System.Windows.Forms > in MainWindow add "System.Windows.Forms.Application.Restart();".

    Done!

提交回复
热议问题