如果4.0 + 4.5是兼容的,为什么4.0使用prog只能在4.5已安装时工作? [英] if 4.0+4.5 are compatible, why won't 4.0 using progs just work when 4.5 is already installed?

查看:65
本文介绍了如果4.0 + 4.5是兼容的,为什么4.0使用prog只能在4.5已安装时工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此处:

https://social.msdn.microsoft.com/Forums/en-US/4e2fce2d-f08f-49fd-a2f7-60822a58e4eb/can-net -40-45-or-461-all-be-one-machine-machine

https://social.msdn.microsoft.com/Forums/en-US/4e2fce2d-f08f-49fd-a2f7-60822a58e4eb/can-net-40-45-or-461-all-be-installed-on-one-machine

答案说安装4.6将阻止4.5和4.0,因为它包含它们。

The answer said installing 4.6 would block 4.5 and 4.0 as it includes them.

我遇到了一个想要安装4.0的应用程序的问题,但是当它运行时,它会收到一个错误,说它不允许降级从4.5 - > 4.0群组。这很好 - 除非应用程序不能继续安装。 因此,如果4.0在4.5和
,它们在4.6中,为什么应用程序坚持重新运行将失败的.net安装程序。 这有点令人沮丧 - 特别是因为我最近遇到了类似5-6个安装程序(过去几天),迫使我重新运行4.0
或4.5安装程序 - 当时已经安装了4.5。  安装.net时,安装程​​序不会返回正面结果。

I'm having a problem with an app that wants to install 4.0, but when it runs, it gets an error saying it won't allow a downgrade from 4.5 -> 4.0.  That's fine -- except then the application won't continue the install.  So if 4.0 is in 4.5 and they are in 4.6, why do applications insist on rerunning a .net installer that will fail.  It's more than a bit frustrating -- especially since I ran into something like 5-6 installers recently (past couple of days) that force me to rerun either a 4.0 or 4.5 installer -- when supposedly 4.5 is already installed.  The installer doesn't return positive results when .net is already supposedly installed.

推荐答案

欢迎来到MSDN论坛。

Welcome to MSDN forum.

首先,.NET Framework 4.5是一个替换计算机上的.NET Framework 4的-place更新,类似地,.NET Framework 4.5.1,4.5.2,4.6,4.6.1,4.6.2,4.7,4.7.1和4.7.2是.NET
Framework 4.5的就地更新,这意味着它们使用相同的运行时版本,但更新了程序集版本并包含新类型和成员。
安装其中一个更新后,.NET Framework 4,.NET Framework 4.5,.NET Framework 4.6或.NET Framework 4.7应用程序应继续运行而无需重新编译。

Firstly, the .NET Framework 4.5 is an in-place update that replaces the .NET Framework 4 on your computer, and similarly, the .NET Framework 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, and 4.7.2 are in-place updates to the .NET Framework 4.5, which means that they use the same runtime version, but the assembly versions are updated and include new types and members. After you install one of these updates, your .NET Framework 4, .NET Framework 4.5, .NET Framework 4.6, or .NET Framework 4.7 apps should continue to run without requiring recompilation.

如果您的.net framework 4.0上定位的应用或组件在.NET Framework 4.5上无法正常工作
请参阅  .NET Framework中的应用程序兼容性 生成目标.NET Framework版本与
之间的更改列表您的应用运行的版本。

If your app or component which targets on .net framework 4.0 does not work as expected on the .NET Framework 4.5 see Application Compatibility in the .NET Framework to generate lists of changes between your targeted .NET Framework version and the version on which your app is running.

如果它不起作用,请提供有关您的项目的详细信息和详细的错误消息。

If it doesn’t work, please more information about your project and the detailed error message.

祝你好运,

Joyce


这篇关于如果4.0 + 4.5是兼容的,为什么4.0使用prog只能在4.5已安装时工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆