Reputation: 450
I cannot seem to find an answer to my question, so I just ask it here:
Say, I have an application built for .Net framework 4.62. Will it run on a server that only has 4.7 installed? (besides some older frameworks of course)
Or do I need to install every targeted framework?
Upvotes: 3
Views: 2313
Reputation: 156988
An application built for 4.6.2 will work on any platform with at least 4.6.2. installed, so 4.7 is okay too. Those versions are backwards compatible.
The above is true for all applications built for .NET 4.0 and higher. For some older versions (in the .NET 2-3.X era) you need to have installed a .NET Framework version up to 3.X, since that .NET Framework version still use the old .NET 2 CLR. From .NET 4 on, it is an in-place update.
Upvotes: 2
Reputation: 13806
The short answer is yes, since the .net framework is backwards compatible.
See more info here:
What is .NET framework backward compatibility?
Upvotes: 1
Reputation: 9141
The .NET Framework 4.5 and its point releases (4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, and 4.7) are backward-compatible with apps that were built with earlier versions of the .NET Framework. In other words, apps and components built with previous versions will work without modification on the .NET Framework 4.5.
For more info, you can refer to this link: https://msdn.microsoft.com/en-us/library/ff602939(v=vs.110).aspx
In other words, it should work fine.
Upvotes: 3