How to reduce the size of vendor dlls from each ClickOnce updates?

两盒软妹~` 提交于 2019-12-13 02:14:45

问题


Is there a way to reduce down the size of each ClickOnce updates? Each update included all the custom verdors dlls (eg. Telerik, NHibernate etc) and is there a way to only include with 1st initial install and not include in later updates?

I only want the latest updated application dlls and .exe in the ClickOnce update file so that client can download the updates via net very quickly.

Please share your recommendations or practices that you use in ClickOnce application. Thanks.


回答1:


Expanding on @Darrel Miller's answer. ClickOnce only downloads files that have changed. It generates a hash for each file. If anything about the file changes (file size, modified date, etc.) a new hash will be generated. When a user starts the application after an update, it compares their local file hashes to the ones on the server to determine what to download.

One caveat is the installation progress dialog. It always shows the entire size of you application, even if a single file is being downloaded. This is just a bug with the dialog, so no need to worry. You can verify it only downloads required files using a tool like Fiddler.




回答2:


If the DLLs do not change then ClickOnce will not re-download the DLLs, they will be copied from the previous installation on the client.



来源:https://stackoverflow.com/questions/2090072/how-to-reduce-the-size-of-vendor-dlls-from-each-clickonce-updates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!