简体   繁体   中英

Why .net 4.6.1 needed when in target framework is 4.5.2

I have one friend with Windows 7 OS (x64). For this OS .net 4.6.1 is unsupported. I have on my pc Windows 10 (x64) with install vs community 2015 and here all working fine.

So, when my friend is trying to launch my app he gets request to install .net 4.6.1.

In vs project "Target framework" field is ".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
  • .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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM