.NET 3.5 可再发行版——200 MB? 其他选择?
我最近在工作中使用了很多新的 .NET 3.5 功能。 我正在构建的应用程序旨在向消费者分发,这些消费者的计算机上可能没有最新版本(或者任何版本)的 .NET 框架。
我去下载 . NET 3.5 可再发行包却发现它几乎200 MB!这对于我的应用程序来说是不可接受的,因为它应该是一个快速且轻松的消费者应用程序可快速安装并在用户计算机上保持低调。 对于已安装 .NET 3.5 的用户,到目前为止,我们的二进制文件下载是即时的。 这个 200 MB 的大猩猩将使下载大小增加四倍以上。 除了这个可再发行包之外,还有其他选项可以用来确保框架位于机器上,不会使用户脱离我们的“快速且无痛”的工作流程吗? 我们的目标是从开始下载到完成安装的时间不到两分钟。 对于尚未安装 .NET 的人来说这是不可能的吗?
I've been using a lot of new .NET 3.5 features in the work that I've been doing, lately. The application that I'm building is intended for distribution among consumers who will probably not have the latest version (or perhaps any version) of the .NET framework on their machines.
I went to go download the .NET 3.5 redistributable package only to find out that it's almost 200 MB! This is unacceptable for my application, because it's supposed to be a quick and painless consumer application that installs quickly and keeps a low profile on the user's machine. For users that have .NET 3.5 already installed, our binary downloads have been instantaneous, so far. This 200 MB gorilla will more than quadruple the size of the download. Is there any other option than this redistributable package that I can use to make sure the framework is on the machine that won't take the user out of our "quick and painless" workflow? Our target time from beginning of download to finalizing the install is less than two minutes. Is it just not possible for someone who doesn't already have .NET installed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
这是我仍然尽可能以 .net 2.0 为目标的可悲原因之一:/
但人们不一定需要完整的 200 MB 软件包。 有一个 3 MB 的引导程序,仅下载所需的组件:
.net 3.5 SP1 Bootstrapper
然而,最坏的情况仍然是下载量相当大。 另请参阅本文,了解有关尺寸和尺寸问题的替代解决方法。
添加:自从回答这个问题后,Scott Hanselman 创建了 SmallestDotNet.com,它将确定所需的最小下载量。 不会改变最坏的情况,但了解仍然有用。
That's one of the sad reasons i'm still targeting .net 2.0 whenever possible :/
But people don't neccessarily need the full 200 MB Package. There is a 3 MB Bootstrapper which will only download the required components:
.net 3.5 SP1 Bootstrapper
However, the worst case scenario is still a pretty hefty download. Also, see this article for a more detailed explanation on the size and an alternative workaround to the size problem.
Addition: Since answering this question, Scott Hanselman created SmallestDotNet.com, which will determine the smallest required download. Doesn't change the worst case scenario, but is still useful to know.
一旦 .NET Framework 3.5 SP1 发布(应该很快),就会有第二个框架选项,即“Client Profile”,这是一个精简的框架,内存大小仅为 30Mb 左右。 它不包括完整框架的所有命名空间和类,但理论上对于大多数常见应用程序来说应该足够了。 如有必要,可以将其升级到完整框架(例如,如果软件更新引入了新的依赖项)
更多信息,请参见此处:BCL 团队博客
Once .NET Framework 3.5 SP1 comes out (should be fairly soon) there will be a second option of frameworks, namely the "Client Profile", which is a cut-down framework that only weighs in about about 30Mb from memory. It doesn't include all of the namespaces and classes of the full framework, but should be enough for most common apps in theory. It can be upgraded to the full framework if necessary (eg. if an update to your software introduces a new dependency)
More more information, see here: BCL Team blog
您看过 .NET Framework 客户端配置文件吗? 它比完整的可再发行包小得多,并且经过优化,只提供智能客户端所需的功能。
这是一个不错的概述。
我不知道这是否会使下载时间保持在两分钟之内,但它应该会让您更接近。
Have you looked at the .NET Framework Client Profile? It is much smaller than the full redistributable package and is optimized for delivering just the functionality needed for smart clients.
Here is a nice overview.
I don't know if this will keep the download under two minutes or not, but it should get you quite a bit closer.
.NET 4 中的客户端配置文件变得更好(更小),请参阅
The Client Profile has got better (and smaller) in .NET 4 see
根据记录,Microsoft SQL Server 2008 需要 .Net Framework 3.5 SP1 来安装,并在本周发布的同时进行 RTM。 仍然是一个很大的安装,但您可以从中提取客户端配置文件。 只是不确定如何。
For the record, .Net Framework 3.5 SP1 is required for Microsoft SQL Server 2008 to install and RTM'd around the same time as the release this week. Still a hefty install but you can extract the client profile from it. Just not to sure how.
此外,还值得(以某种方式)下载 Service Pack。 事实上,根据可执行文件的构建方式,您可能被迫安装框架和服务包。
Also, it is worth including (in some fashion) the Service Pack downloads as well. In fact, depending on how your executables are built, you might be forced to install the Framework and the Service Packs.