安装 3.5 后卸载 .NET Framework 2.0 和 1.0 安全吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/385893/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Safe to uninstall .NET Framework 2.0 and 1.0 after installing 3.5?
提问by tunnuz
I'm new to Windows development and I have a question. I'm using a Mac with Boot Camp to run Windows in dual boot, but I have an extremely small Windows partition (10 GB, because Boot Camp failed with bigger partition, due to the disk usage). After installing Visual Studio 2008 I continuously get low-disk-space warnings so I want to free up some space. I can see, from the control panel, that I have several .NET Framework versions installed (1.0, 2.0, 3.5, various service packs). I want to know if since I have the 3.5 installed, I can safely remove the other ones.
我是 Windows 开发的新手,我有一个问题。我正在使用带有 Boot Camp 的 Mac 在双引导中运行 Windows,但我有一个非常小的 Windows 分区(10 GB,因为 Boot Camp 因磁盘使用而失败,更大的分区)。安装 Visual Studio 2008 后,我不断收到磁盘空间不足的警告,因此我想释放一些空间。我可以从控制面板中看到,我安装了多个 .NET Framework 版本(1.0、2.0、3.5、各种服务包)。我想知道因为我安装了 3.5,我是否可以安全地删除其他的。
Thank you.
谢谢你。
回答by Andreas Grech
You can remove the 1.1 Framework, but you cannot remove the 2.0 Framework
您可以删除 1.1 Framework,但不能删除 2.0 Framework
This is because the .NET 3.5 framework is an extension of the 2.0 framework, and not a separate one.
这是因为.NET 3.5 框架是 2.0 框架的扩展,而不是单独的框架。
回答by Jon Skeet
As well as the other (correct) answers stating that 3.5 depends on 2.0, I'd suggest that you don't remove 1.1 for compatibility reasons. MS did a pretty good job making 2.0 backwards-compatible, but it's not 100%. Any application written for and tested on 1.1 is more likely to work on that than on 2.0.
除了说明 3.5 取决于 2.0 的其他(正确)答案之外,我建议您不要出于兼容性原因删除 1.1。MS 在使 2.0 向后兼容方面做得很好,但不是 100%。任何为 1.1 编写和测试的应用程序都比 2.0 更有可能在 1.1 上运行。
回答by Kev
.NET Framework 3.5 is an additive update to .NET Framework 2.0 and 3.0 so you shouldn't remove them.
.NET Framework 3.5 是对 .NET Framework 2.0 和 3.0 的附加更新,因此您不应删除它们。
If you're fairly certain that you won't need Framework 1.x and are fairly certain that any 1.1 apps run just fine under 2.0 then you can uninstall that.
如果您相当确定您不需要 Framework 1.x,并且相当确定任何 1.1 应用程序在 2.0 下都可以正常运行,那么您可以卸载它。
If you're running Vista on your bootcamp partition you could try Scott Hanselmans guide to freeing up disk space:
如果您在 bootcamp 分区上运行 Vista,您可以尝试使用 Scott Hanselmans 指南来释放磁盘空间:
http://www.hanselman.com/blog/GuideToFreeingUpDiskSpaceUnderWindowsVista.aspx
http://www.hanselman.com/blog/GuideToFreeingUpDiskSpaceUnderWindowsVista.aspx
At this time his site (unusually) appears to be offline, but when I used this I managed to free up 30GB of diskspace on my laptop.
此时他的站点(异常)似乎处于离线状态,但是当我使用它时,我设法在我的笔记本电脑上释放了 30GB 的磁盘空间。
回答by user39603
I'd also recommend against removing any .NET version. Having them all installed gives you a platform free of any compatibility issues. However, if you really don't need 1.1, and you want to be absolutely sure that all unnecessary files are removed, you could just uninstall everything (1.1, 2.0, 3.5), and then re-install 3.5. After which you'll have clean versions of 2.0 and 3.5 (as well of some 3.0 files, I think).
我还建议不要删除任何 .NET 版本。将它们全部安装后,您将获得一个没有任何兼容性问题的平台。但是,如果您真的不需要 1.1,并且您想绝对确保删除所有不必要的文件,您可以卸载所有内容(1.1、2.0、3.5),然后重新安装 3.5。之后,您将拥有 2.0 和 3.5 的干净版本(我认为还有一些 3.0 文件)。
回答by Vilx-
3.5 includes 2.0, so I don't think you'll be able to remove that one. You can remove 1.x, but I think it didn't take up much space anyway.
3.5 包括 2.0,所以我认为您无法删除那个。您可以删除 1.x,但我认为它并没有占用太多空间。
回答by Jon Limjap
It will be safe to uninstall 1.x after installing .NET 3.5, unless you still have programs that need it.
安装 .NET 3.5 后卸载 1.x 是安全的,除非您仍有需要它的程序。
As for .NET 2.0, it's NOT advisable to get rid of it, the reason being that 3.5 builds up upon 2.0. If you have IIS on your machine, you definitely won't be able to get rid of it.
至于 .NET 2.0,不建议删除它,原因是 3.5 建立在 2.0 之上。如果你的机器上有 IIS,你肯定无法摆脱它。
回答by John Baughman
As already stated, you can remove 1.1 or 1.0. If you run into a program that requires these you have the joy of reinstalling them. However, for ASP.NET apps built under 1.1 you can repoint them to 2.0 and it "should" still run, thanks to the retention of deprecated methods.
如前所述,您可以删除 1.1 或 1.0。如果您遇到需要这些的程序,您会很高兴重新安装它们。但是,对于在 1.1 下构建的 ASP.NET 应用程序,您可以将它们重新指向 2.0,并且由于保留了已弃用的方法,它“应该”仍然运行。

