ClickOnce部署应用程序设置可以被压缩吗? [英] Can ClickOnce deployed application setup be compressed?

查看:166
本文介绍了ClickOnce部署应用程序设置可以被压缩吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ClickOnce发布Windows Forms应用程序。考虑到这个程序的整体尺寸,安装是相当大的。这是超过15 MB的东西。如果我压缩本地构建的应用程序,它被压缩到2.5 MB。

I publish Windows Forms application using ClickOnce. The installation is quite big considering the overall size of this app. It's something over 15 MB. If I compress locally built application it is squeezed to 2.5 MB.

ClickOnce部署是否可以压缩?

Can ClickOnce deployment be compressed somehow?

如果没有,是否有人使用IIS压缩来加快传输?有帮助吗?

If not, is anyone using IIS compression to speed up transfers? Would that help?

推荐答案

据我所知,您无法手动压缩您的程序集。但是,您绝对可以使用IIS压缩。从带有带宽监视器的测试中,它有显着差异。一旦建立起来,你就不必考虑它,它只会自动发生。

As far as I know, you can't really manually compress your assemblies. However, you absolutely can use IIS compression. From my testing with a bandwidth monitor, it makes a significant difference. And once it's set up, you never have to think about it, it just happens automatically.

我很惊讶,这不是更频繁地谈论。几年前我想这样做,我可以找到很少的信息。但是,本文应详细说明您需要做的所有更改如果您正在运行IIS 6.0。我不知道IIS的更高版本有多少不同的说明。

I'm surprised this isn't talked about more often. When I wanted to do this a few years ago I could find very little information about it. However, this article should detail all the changes you need to make if you're running IIS 6.0. I'm not sure how much different those instructions will be for later versions of IIS.

这篇关于ClickOnce部署应用程序设置可以被压缩吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆