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

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

问题描述

我使用 ClickOnce 发布 Windows 窗体应用程序.考虑到这个应用程序的整体大小,安装是相当大的.它超过 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天全站免登陆