Visual Studio 2012 可以与 Visual Studio 2010 并行安装吗?

发布于 2024-12-04 13:09:33 字数 87 浏览 2 评论 0 原文

如果在同一 Windows 实例上并行安装,Visual Studio 2012 是否会干扰/破坏 .NET 4 和/或 Visual Studio 2010?

Will Visual Studio 2012 interfere/break .NET 4 and/or Visual Studio 2010 if installed side-by-side on the same instance of Windows?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(15

酒绊 2024-12-11 13:09:33

正如雷戈所说,是的。以下是 Microsoft 官方页面的链接,其中包含 Reigo 提供的信息以及更多详细信息:http://msdn.microsoft.com/en-us/library/ms246609%28v=VS.110%29.aspx

As Reigo said, yes. Here's the link to the official Microsoft page with the information Reigo provided, and more details: http://msdn.microsoft.com/en-us/library/ms246609%28v=VS.110%29.aspx

梦忆晨望 2024-12-11 13:09:33

.net 4.5 版本是就地升级。

这意味着.net 4.0 的二进制文件将被 .net 4.5 的二进制文件替换

Microsoft 试图通过创建“Target .net 4.0”功能来缓解由此引起的问题。但这与针对以前版本的.net(自.net 2.0以来一直并存)有很大不同。

由于是就地升级,“目标.net 4.0”无法真正针对它。他们能做的最好的事情就是尝试手动删除一些“功能”。他们已经做到了这一点(Scott Hanselman 有一篇 博客文章 对此进行了介绍)。

但不要让这欺骗您,让您误以为您真的在使用 .net 4.0。 .net 4.5 修复的任何错误都将在您的开发计算机上修复,而不是为您的 .net 4.0 用户修复。

因此,如果您正在开发“针对 .net 4.0”的应用程序并且安装了 .net 4.5那么你就有危险了。如果您不小心使用了已修复的错误,它不会在调试时为您造成破坏。

当您将应用程序部署到仅运行 .net 4.0(即 Windows XP)的计算机时,这些错误不会为您的用户修复

出于所有意图和目的,这些已修复的错误现在是“隐藏的错误”(对于仍需要以 .net 4.0 为目标的开发人员而言)。

最好的部分是,使用 VS 2010 或 VS 2012 并不重要。一旦 .net 4.5安装错误已隐藏,

请参阅此帖子了解更多详细信息:http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/c05a8c02-de67-47a9-b4ed-fd8b622a7e4a/

The .net 4.5 release is an In-place upgrade.

This means that the binaries for .net 4.0 will be REPLACED by the binaries for .net 4.5.

Microsoft has attempted to mitigate the problems this causes by making a "Target .net 4.0" feature. But this is very different from the targeting previous versions of .net (which have been side by side since .net 2.0).

Because it is a in-place upgrade, "Target .net 4.0" cannot really target it. The best they can do is try to manually remove some "features". They have done this (Scott Hanselman had a blog post covering this).

But don't let this fool you into thinking you are really using .net 4.0. Any bugs fixed by .net 4.5 will be fixed on your development machine and not for your .net 4.0 users.

So if you are developing an application "targeting .net 4.0" and you have .net 4.5 installed then you are at risk. If you accidentally use a fixed bug, it will not break for you while debugging.

When you deploy your app to a machine running only .net 4.0 (ie windows xp) then those bugs are not fixed for your user.

For all intents and purposes, those fixed bugs are now "Hidden Bugs" (for developers that still need to target .net 4.0.

The best part is that it does not matter if you use VS 2010 or VS 2012. Once .net 4.5 is installed the bugs are hidden.

See this post for more details: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/c05a8c02-de67-47a9-b4ed-fd8b622a7e4a/

·深蓝 2024-12-11 13:09:33

我已经被 VS betas 严重烧伤了,卸载它们时从来没有遇到过令人讨厌的问题。微软制作了优秀的软件,但安装程序似乎总是最后被处理的事情。我看到的问题是卸载时没有删除组件,然后搞砸了零售版,并且安装程序不依赖其他已安装的 Microsoft 产品并破坏了它们的配置。

这个版本远早于测试版,请勿将其安装在完成工作所需的计算机上。这几乎排除了安装 VS2008 的可能性。 VM当然没问题。

I've been burned badly by VS betas, never not had a nasty problem getting them uninstalled. Microsoft makes fine software but the installer seems to always be the very last thing taken care of. Problems I've seen is the uninstall not removing components that then screws up the retail edition and the installer not counting on other installed Microsoft products and destroying their configuration.

This one is far before a beta, do not install it on a machine you need to get your job done. Which pretty much precludes having VS2008 installed. VM is fine of course.

酒浓于脸红 2024-12-11 13:09:33

我昨天安装了 RC,发现以下内容:

它导致 VS2010 在运行单元测试时冻结(这可以通过使用 2012 来解决,或者在命令行上使用 mstest 来运行单元测试)

它导致 VS2010 无法编译 C++ 项目,因链接错误而失败。即使卸载VS2012 RC后,这个问题仍然存在......所以我强烈建议不要现在安装它

I installed the RC yesterday, and found the following:

It causes VS2010 to freeze when running unit tests (this can be worked around by using 2012, or mstest on the command line to run your unit tests)

It causes VS2010 not to be able to compile C++ projects, failing with a link error. Even after uninstalling VS2012 RC, this problem still persists... so I'd advise strongly against installing it right now

峩卟喜欢 2024-12-11 13:09:33

因此,阅读所有答案,可以归结为:

  • 安装VS2012后,.NET 4.5将覆盖.NET 4.0。
  • 您仍然可以使用 VS2010,但它将针对 .NET 4.5 进行编译(因为 .NET
    4.0被取代)。
  • 危险:您无法再在运行 .NET 4.0 的计算机上安全地部署项目。

So reading all answers, it comes down to this:

  • After installing VS2012, .NET 4.5 will overwrite .NET 4.0.
  • You can still use VS2010, but it will compile against .NET 4.5 (since .NET
    4.0 is replaced).
  • Danger: You can no longer safely deploy your projects on machines that run .NET 4.0.
离旧人 2024-12-11 13:09:33

是的,您可以,但始终建议先安装早期版本。
如果您想在 VS 11 中打开 Visual Studio 2010 项目,然后再返回,请确保您不使用 Visual Studio 11 新功能

Yes you can, but its always recommended to install earlier versions first.
And if you want to open the Visual Studio 2010 project in VS 11, and then later back again, make sure you don't use Visual Studio 11 new features

注定孤独终老 2024-12-11 13:09:33

它可以并排安装,但它甚至不是测试版..! 不要指望它真的有效!

请参阅这个我们遇到的问题,以及提到 <另一条评论中的 href="https://stackoverflow.com/users/203499/damian">Damian 。

It can be installed side-by-side but it's not even beta..! Don't expect it to actually work!

See this problem we're having, and this mentioned by Damian in another comment.

站稳脚跟 2024-12-11 13:09:33

我昨天做了,今天卸载了它......

显然,出了问题,因为我之前构建的一些应用程序开始给出有关“无法加载模块bla bla bla ...”的奇怪错误,所以我卸载了所有内容,强制重新安装.NET Framework 4.0,现在一切又恢复正常了!

I did it yesterday, and uninstalled it today...

Apparently, something went wrong because some apps that I built before started giving strange errors regarding "unable to load module bla bla bla...", so I uninstalled everything, forced the reinstallation of .NET Framework 4.0 and now all works fine again!

一直在等你来 2024-12-11 13:09:33

它肯定会引起问题。
例如:

在 .NET 4.0 中,每当有人尝试在 LINQ-2-Entities 中保存枚举值时,jup,您就猜对了:
当你有 4.0 时出现错误
在安装了 4.5 的机器上工作时取得了巨大的成功(是的,即使该程序集针对的是 4.0 客户端配置文件!)

因此,在使用这个没有任何反向兼容性的良好新功能时要注意。

It can definitely cause problems.
For example:

In .NET 4.0, whenever one tries to save an enum value in LINQ-2-Entities, jup, you guessed it:
ERROR when you have 4.0
GREAT SUCCESS when working on machine with 4.5 installed (yes even though the assembly targets the 4.0 client profile!)

So pay attention when using this good new feature that has no reverse compatibility whatsoever.

北笙凉宸 2024-12-11 13:09:33

它在并排安装的 32 位计算机上运行良好,但有时可能会出现错误,但重新安装或卸载以前的安装它可以安装。我是在项目中期完成的,它也不会影响之前的工作。

It works well on 32-bit machine installing side by side but sometime you can get error but reinstalling or uninstalling previous installation it can be installed. I did it during middle of the project and it do not effect previous work also.

〆一缕阳光ご 2024-12-11 13:09:33

如前所述,官方可以,但可能会导致问题。

如果您想运行 Visual Studio 2012,我认为最安全的方法是使用免费的 WMWare VMplayer 并在其上安装 Windows 8,然后在那里安装 Visual Studio 2012。您至少需要 4 GB RAM,但 8 GB 或更多内存运行效果更好。无论如何,这就是我所做的。

As was stated, officially you can but it can cause problems.

If you want to run Visual Studio 2012, I think the safest way is to use the free WMWare VMplayer and install Windows 8 on it then install Visual Studio 2012 there. You need at least 4 GB of RAM but runs better with 8 GB or more. That's what I do anyway.

情场扛把子 2024-12-11 13:09:33

我的主要问题是安装 VS2012 RTM 后无法再从 VS2010 运行单元测试!它永远挂着。甚至无法阻止。

所以现在我想说,微软又做了一次,并排不起作用。

我认为这可能是因为这是未应用 SP1 的 VS2010 安装。

My main problem has been that one can no longer run unit tests from VS2010 after installing VS2012 RTM! It just hangs forever. Cannot even stop it.

So for now I would say, MS did it again, side-by-side does not work.

I think this may be due to this being a VS2010 installation without SP1 applied.

爱你是孤单的心事 2024-12-11 13:09:33

好消息是安装会创建一个系统还原点。外部硬盘驱动器备份是解决这个问题的方法,直到真正的版本出现或者您从头开始一个项目。

The good news is the install makes a system restore point. External hard drive backup is the solution to this till a real version comes out or you are starting a project from scratch.

慢慢从新开始 2024-12-11 13:09:33

我注意到 Web &安装 VS2012 后,负载测试解决方案似乎损坏。已经复制并升级到2012,它们工作正常。只是VS2010无法再发起测试运行了。

I've noticed that Web & Loadtesting solutions appear broken after VS2012 install. Have taken copies and upgraded to 2012 and they work fine. It's just VS2010 can no longer initiate a test run.

一直在等你来 2024-12-11 13:09:33

是的,您还可以在 2010 年轻松打开 2012 年的项目,不会出现任何问题。只要它仍然使用.net 4.0。

Yes, you can also easly open a project from 2012 in 2010 without issue. as long as its still using .net 4.0.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文