gpt4 book ai didi

c# - 为什么在目标框架中需要 .net 4.6.1 是 4.5.2

转载 作者:太空狗 更新时间:2023-10-29 19:55:39 25 4
gpt4 key购买 nike

我有一位使用 Windows 7 操作系统 (x64) 的 friend 。对于此操作系统,不支持 .net 4.6.1。我的电脑上安装了 Windows 10 (x64),安装了 vs community 2015,这里一切正常。

因此,当我的 friend 尝试启动我的应用时,他收到了安装 .net 4.6.1 的请求。

在 vs 项目中“目标框架”字段是“.NET Framework 4.5.2”

微软的拐杖?

我能做些什么来解决这个问题?

最佳答案

来自 here :

The .NET Framework 4.6 is an in-place upgrade for all of the following versions of the .NET Framework:

  • .NET Framework 4
  • .NET Framework 4.5
  • .NET Framework 4.5.1
  • .NET Framework 4.5.2

An in-place upgrade means that if you install the .NET Framework 4.6 when any of the above versions of versions of the .NET Framework are installed on your PC, .NET Framework 4.6 setup will upgrade them and you will be left with only the .NET Framework 4.6 installed afterwards. In addition, any attempts to install older versions of the .NET Framework 4 family when the .NET Framework 4.6 is already present will result in .NET Framework setup blocking you from installing because it detects that a newer version is already installed.

The .NET Framework 4.6 is designed to be compatible with all applications created with any version of the .NET Framework from 4 to 4.6, but there are sometimes application compatibility issues that arise, such as an installer that tells the user that they must install the .NET Framework 4.5 even if the .NET Framework 4.6 is already installed. In cases like this, you might need to revert back from the .NET Framework 4.6 to an earlier version of the .NET Framework 4 family. To do that, you must uninstall the .NET Framework 4.6 and then re-install the earlier version of the .NET Framework from the .NET Framework 4 family.

基本上,它会提示您安装 4.6.1,因为它是与您的程序兼容的最高版本,目标是 4.5.2,而目标机器显然没有任何兼容的框架(4.5.2 或更高)安装。

关于c# - 为什么在目标框架中需要 .net 4.6.1 是 4.5.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37997755/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com