I have a .NET 2.0 application and I plan to make a 'smart installer' which checks for the available .NET version on the user's PC and install my specific port for it. I saw that:
As far as I know, the only thing that's not backward compatible is the CLR version, which is changed after .NET 4.0.
So if I don't want the user to install additional framework just for my application, I should have these versions of my app:
Am I right? Or 4.5/4.0 are backward compatible?
EDIT: If any of the upper data isn't right, please correct me
NET Framework 4.5 and later versions 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 and later versions.
ASP.NET 5 is just the new Web stack reimagined; it's not backward compatible, at least not literally, although it doesn't sound like a brand-new paradigm shift to ASP.NET developers.
0 is not backward compatible with older version of netcoreapps #19374.
NET Core 3.1, as it's backwards compatible with . NET Core 2, we weren't comfortable recommending doing so to our customers until we had tested it for ourselves.
As far as I know, the only thing that's not backward compatible is the CLR version, which is changed after .NET 4.0.
This isnt true. You can make your .NET2 compiled application run on the .NET4 framework.
You just need to add the following to your app.config:
<configuration>
<startup>
<supportedRuntime version="v2.0.50727"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>
Note, I agree with @KingKronus, ie Why not just pick the lowest common denominator?
In your case that would be .NET2 compiled and only one set of pdbs and one compilation set.
Yes, you would need to test your .NET2-compiled app runs OK on the .net4 runtime BUT you would need to test your app in each of the frameworks in your original solution anyway.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With