Auto update for WinForms application

前端 未结 4 1242
故里飘歌
故里飘歌 2020-12-12 23:15

When creating an auto updating feature for a .NET WinForms application, how does it update the DLLs and not affect the currently running application?

Since the appli

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-12 23:22

    You'll have to shutdown your application and restart it, as other people have already commented.

    I wrote an open-source code to do just that in a transparent mode - including an external update application to do the actual cold update. See http://www.code972.com/blog/2010/08/nappupdate-application-auto-update-framework-for-dotnet/

    The code is at http://github.com/synhershko/NAppUpdate (Licensed under the Apache 2.0 license)

提交回复
热议问题