有没有办法从 .NET 3.5 中提取 .NET 2.0?
.NET Framework 3.5 SP1 在后台安装 .NET Framework 2.0 SP2 和 .NET Framework 3.0 SP2。 这些安装包(尤其是.NET Framework 2.0 SP2)不能直接从Microsoft 获得。
有没有办法从.NET Framework 3.5 SP1安装包中提取它们?
.NET Framework 3.5 SP1 installs the .NET Framework 2.0 SP2 and the .NET Framework 3.0 SP2 behind the scenes. These installation packages (especially .NET Framework 2.0 SP2) are not available directly from Microsoft.
Is there a way to extract them from the .NET Framework 3.5 SP1 installation package?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
查看 http://msdn.microsoft.com/en-us/ vs2008/bb898654.aspx 或下载 .NET Frameworks 2.0 SP2 和 3.0 SP2 引导程序包。 这些包为您提供单独的 .NET Framework 2.0 SP2 和 .NET Framework 3.0 SP2 安装包。
Take a look on http://msdn.microsoft.com/en-us/vs2008/bb898654.aspx or download .NET Frameworks 2.0 SP2 and 3.0 SP2 bootstrapper packages. These packages give you separate .NET Framework 2.0 SP2 and .NET Framework 3.0 SP2 installation packages.
这值得一读:
http://msdn.microsoft.com/en- us/library/bb822049.aspx
具体来说:
“Windows Vista 不支持 .NET Framework 版本 2.0 SP2 或版本 3.0 SP2 的独立安装。Windows 2000 不支持 .NET Framework 版本 3.5 SP 1,也不是 .NET Framework 版本 3.0 SP 2 的独立安装。”
另外 - “如果您的应用程序依赖于 .NET Framework 2.0 SP 1 或 SP 2 附带的更改,那么您可以您的应用程序以 .NET Framework 2.0 为目标,并要求您的客户下载 .NET Framework 2.0 SP 1 或 SP 2。但是,如果您的应用程序依赖于新的或更改的功能,建议您的应用程序以 .NET Framework 3.5 或.NET Framework 客户端配置文件。”
这确实表明将来可能会发布一个独立版本,尽管您的猜测和我的一样好。
另请参阅 Somasegar 博客上有关 2.0 SP2 背景的测试版期间的评论:
http://blogs.msdn.com/somasegar/archive/2008/05/12 /visual-studio-2008-and-net-fx-3-5-sp1-beta-available-now.aspx#8515404
您可以解压缩 dotnetfx35.exe 并尝试通过安装 .NET 来搞砸在一次性/测试机器上安装 2.0 SP2 位,看看它是否有效。 这些文件位于 wcu/dotNetFramework/dotNetfx20 下。
但我要警告的是,等到官方 RTM 或部署整个 3.5SP1 时,正如 Scott 正确指出的那样,您可能会得到一个不稳定且完全不支持的安装(特别是 MS PSS)。
This is worth a read:
http://msdn.microsoft.com/en-us/library/bb822049.aspx
Specifically:
"Windows Vista does not support the standalone installation of the .NET Framework version 2.0 SP2 or version 3.0 SP2. Windows 2000 does not support the .NET Framework version 3.5 SP 1, nor the standalone installation of the .NET Framework version 3.0 SP 2."
Also - "If your application relies on changes that shipped with .NET Framework 2.0 SP 1 or SP 2, then you can have your application target the .NET Framework 2.0 and ask your customers to download the .NET Framework 2.0 SP 1 or SP 2. However, if your application relies on new or changed functionality, it is recommended that your application target the .NET Framework 3.5 or the .NET Framework Client Profile. "
Which does suggest there may be a standalone release at some point in the future, though your guess is as good as mine.
Also see this comment on Somasegar's blog from around the time of the beta about the background to 2.0 SP2:
http://blogs.msdn.com/somasegar/archive/2008/05/12/visual-studio-2008-and-net-fx-3-5-sp1-beta-available-now.aspx#8515404
You could unzip the dotnetfx35.exe and try and muddle your way through installing the .NET 2.0 SP2 bits on a throwaway/test machine to see if it works. The files are under wcu/dotNetFramework/dotNetfx20.
But my caveat would be wait until the official RTM or deploy the whole of 3.5SP1, you may, as Scott correctly points out, end up with an unstable and wholey unsupportable installation (specifically MS PSS).
如果它们不能直接使用,那么就没有官方的方法来单独安装它们,即使您能够提取它们,您最终也会得到一个非常不受支持(并且可能不稳定)的 .NET 环境。
If they aren't available directly then there isn't an official way to install them separately and even if you were able to extract them you would end up with a very unsupported (and probably unstable) .NET environment.
您可以访问 Microsoft 下载网站
You can download SP 2 completely separately by going to the Microsoft download site
您只需下载 .NET Framework 2.0 SP1 (x86)、SP2 补丁(如果可以直接找到它,从 3.5 SP1 安装程序中提取 .MSP,或者通过 WSUS 获取 .MSP,或者通过捕获 Windows 更新 HTTP 流量),然后创建一个该批处理文件使用 /silent 开关安装 SP1,然后在其上安装 SP2。 完整的 SP1 发行版和 SP2 补丁之间不需要重新启动,除非在安装 SP1 运行时之前正在使用文件,无论如何,完整的发行版都会出现这种情况。
这里是我也用来集成 NFX1.1 SP1 的过程 - I想象它也应该以类似的方式适用于其他补丁。
You could simply download the .NET Framework 2.0 SP1 (x86), the SP2 patch (directly if you can find it, the .MSP by extracting from the 3.5 SP1 installer, or the .MSP via WSUS, or by capturing the Windows Update HTTP traffic), and create a batch file which installs SP1 then SP2 on top of it with the /silent switch. No reboot required as such between the full SP1 distribution and the SP2 patch, except when files are in use before installing the SP1 runtime, which would be the case with a complete distribution anyway.
Here is a procedure I also used to follow to integrate SP1 for NFX1.1 - I imagine it should work in a similar fashion for other patches too.
Microsoft 的包罗万象的获取框架网站: http://msdn.microsoft .com/en-us/netframework/aa731542.aspx
Microsoft's all-inclusive get-the-framework site: http://msdn.microsoft.com/en-us/netframework/aa731542.aspx
这里: http://msdn.microsoft.com/en-us/vs2008/ bb898654.aspx
下载安装程序(下载大小:325 MB)
使用/x开关解压,有一个名为adtbs_sp2oob.cab的cab文件,里面有一个名为
的文件FL_FL_NetFx20SP2_x86.exe.3643236F_FC70_11D3_A536_0090278A1BB8
,您可以将其重命名为NetFx20SP2_x86.exe
,如果您需要64位,则可能是FL_NetFx20SP2_x64.3643236F_FC 70_11D3_A536_0090278A1BB8
。 它应该是完全独立的,到目前为止对我来说工作正常。Here: http://msdn.microsoft.com/en-us/vs2008/bb898654.aspx
Download Installer (Download Size: 325 MB)
Extract it with the /x switch, there is a cab file called adtbs_sp2oob.cab, inside it is a file called
FL_FL_NetFx20SP2_x86.exe.3643236F_FC70_11D3_A536_0090278A1BB8
, you can rename it toNetFx20SP2_x86.exe
, If you need 64-bit, it's probablyFL_NetFx20SP2_x64.3643236F_FC70_11D3_A536_0090278A1BB8
. It should be completely independent, works OK for me so far.