简体   繁体   中英

Is .NET 4.6.2 compatible with .NET 4.7?

On my VM I have .NET 4.6.2 installed and I have a .net website compiled using .NET 4.6.2

I have a new VM with .NET 4.7 installed . Is .NET 4.6.2 compatible with .NET 4.7?

  1. Can I compile the same .net website code using .NET 4.6.2?

  2. On an IIS server that has got .NET 4.7 installed, can I run the .net website with .NET 4.6.2?

Short answer: yes to both your questions.

Slightly longer answer: .NET 4 is an in-place upgrade which means that each upgrade overwrites the previous version in the same file location so that there is only ever one version installed. If you had .NET 4.7 framework installed on your server then your code will work regardless if it targets 4.5 or 4.6.2 or 4.7.

Note: I would install .NET 4.8 as that is the last, most up to date version.

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