简体   繁体   English

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

[英]Why .net 4.6.1 needed when in target framework is 4.5.2

I have one friend with Windows 7 OS (x64). 我有一个Windows 7 OS(x64)的朋友。 For this OS .net 4.6.1 is unsupported. 对于此操作系统.net 4.6.1不受支持。 I have on my pc Windows 10 (x64) with install vs community 2015 and here all working fine. 我在我的电脑Windows 10(x64)上安装vs社区2015,这里一切正常。

So, when my friend is trying to launch my app he gets request to install .net 4.6.1. 所以,当我的朋友试图启动我的应用程序时,他会收到安装.net 4.6.1的请求。

In vs project "Target framework" field is ".NET Framework 4.5.2" 在vs项目中“Target framework”字段是“.NET Framework 4.5.2”

Crutches from Microsoft? 来自微软的拐杖?

and what can i do for fix that? 我能做些什么来解决这个问题?

From here : 这里

The .NET Framework 4.6 is an in-place upgrade for all of the following versions of the .NET Framework: .NET Framework 4.6是所有以下.NET Framework版本的就地升级:

  • .NET Framework 4 .NET Framework 4
  • .NET Framework 4.5 .NET Framework 4.5
  • .NET Framework 4.5.1 .NET Framework 4.5.1
  • .NET Framework 4.5.2 .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. 就地升级意味着如果在PC上安装.NET Framework的任何上述版本的版本时安装.NET Framework 4.6,.NET Framework 4.6安装程序将升级它们,您将只剩下之后安装了.NET Framework 4.6。 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. 此外,当.NET Framework 4.6已存在时,任何尝试安装旧版本的.NET Framework 4系列都将导致.NET Framework安装阻止您安装,因为它检测到已安装较新版本。

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. .NET Framework 4.6旨在与使用任何版本的.NET Framework从4到4.6创建的所有应用程序兼容,但有时会出现应用程序兼容性问题,例如安装程序告诉用户必须安装.NET Framework 4.5即使已安装.NET Framework 4.6也是如此。 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. 在这种情况下,您可能需要从.NET Framework 4.6恢复到早期版本的.NET Framework 4系列。 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. 为此,您必须卸载.NET Framework 4.6,然后从.NET Framework 4系列重新安装早期版本的.NET Framework。

Basically, it is prompting you to install 4.6.1 because it is the highest version that is compatible with your program that is targeting 4.5.2, and the target machine apparently doesn't have any compatible framework (4.5.2 or higher) installed. 基本上,它会提示您安装4.6.1,因为它是与您的程序兼容的最高版本,目标4.5.2,并且目标计算机显然没有安装任何兼容的框架(4.5.2或更高版本) 。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将Asp.Net应用程序从4.6.1降级到.Net Framework 4.5.2 - Downgrade Asp.Net application to .Net framework 4.5.2 from 4.6.1 Linux上的.net核心应用程序目标.net框架4.5.2 - .net core app target .net framework 4.5.2 on Linux asp.net核心目标框架4.6.1发布 - asp.net core target framework 4.6.1 publish Nuget package 创建 - Class 库以 Z303CB0EF9EDB9082D61BBBE5625D972AZ41 为目标框架不正确。 - Nuget package creation - Class library that targets .NET framework 4.6.1 can not target correct framework 假货和 .net Framework 4.6.1 和系统 - Fakes and .net Framework 4.6.1 and System 具有 4.7.2 目标框架版本的 C# 项目可以在 .net 4.6.1 上运行吗 - Can C# projects that have 4.7.2 target framework version run on .net 4.6.1 如何使用Asp.Net.Identity和Entity Framework 6在Asp.Net Core 2.0 Target Framework 4.6.1中设置身份? - How can I setup identity in Asp.Net Core 2.0 Target Framework 4.6.1 using Asp.Net.Identity and Entity Framework 6? 为什么.NET Core 2.0的性能比.NET Framework 4.6.1差 - Why does .NET Core 2.0 perform worse than .NET Framework 4.6.1 .NET WebAPI项目:HTTP错误403.14-从.net Framework 4.5迁移到4.5.2时禁止 - .NET WebAPI Project: HTTP Error 403.14 - Forbidden when migrating from .net framework 4.5 to 4.5.2 Visual Studio Express .net框架4.5.2 - Visual Studio Express .net framework 4.5.2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM