开发者

DLL Deployment Strategies

If you have a modular applicaiton that depends on its modules to be in seperate libraries ( dlls ).

What kind of Re-deployment strategy would be good to follow?

The application is installed using the Setup Project that is a开发者_如何转开发vailable in Visual Studio.

I would like to avoid the copy and paste approach!


The easiest way to get around the copy and paste approach would be to deploy your application as a smart client application. This way you just put your new dll's in one single place, and the next time each application is restarted it will download the new assemblies.


In a large project that had about 30 separate modules, I built a small "updater" application which was a tiny application consisting of a Windows form, and about 3 code files. I deployed this to clients using .NET's ClickOnce technology. Whenever I had to "update the updater" (which was once in 2 years) I just pushed a new ClickOnce manifest out and clients got it the next time they logged in.

The updater, when ran, downloaded an XML manifest from the deployment server which contained a list of the binaries and libraries that made up the full application, along with the date/time and sizes of each binary file. It then compared those files with the local filesystem to determine which needed updating, and pulled down the ones it needed.

Afterwards, it then compared the list of the files on the manifest with the local filesystem, removed any files that shouldn't have been there, and executed the main application's executable.

This approach worked great for us, as I also used the same logic in the main application to update in the background, so the users could just restart the application when advised a new update had been installed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜