Reputation: 9634
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?
Can I compile the same .net website code using .NET 4.6.2?
On an IIS server that has got .NET 4.7 installed, can I run the .net website with .NET 4.6.2?
Upvotes: 0
Views: 1353
Reputation: 10899
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.
Upvotes: 2