![]() |
|
[.NET] Can .NET 2.0 run on newer versions of .NET? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Can .NET 2.0 run on newer versions of .NET? (/showthread.php?tid=5788170) |
Can .NET 2.0 run on newer versions of .NET? - Hoodie+ - Jan 21, 2018 Lately, I've gained interest in the .NET framework. Here is a diagram of the lowest .NET version an OS comes with. Windows Vista - .NET Framework 2.0 Windows 7 - .NET Framework 3.5.1 Windows 8 - .NET Framework 4.5 Windows 8.1 - .NET Framework 4.5.1 Windows 10 - .NET Framework 4.6 Now my question is if I develop an app based on .NET Framework 2.0 it will surely work on Windows Vista without installing additional software but what about for example Windows 10. Is .NET Framework 4.6 backward compatible with 2.0? I've tried running a 2.0 app on a freshly installed Windows 10 and in fact, a popup came up saying that it recommends me to install the older .NET framework for the app to run, why is it so? Because I've read that .NET frameworks are backward compatible. Thank you 🤝 RE: Can .NET 2.0 run on newer versions of .NET? - HFDone - Jan 21, 2018 v2 will run on all versions if its installed (the same for all versions) and ppl dont get it RE: Can .NET 2.0 run on newer versions of .NET? - Barret - Jan 21, 2018 (Jan 21, 2018 08:49 AM)Orka Wrote: 2.0 operates a different runtime to 4.0, which is why you're seeing this popup. Win7 will receive 4.0+ on running windows update (to get aero desktop) so I'd bet 4.0 is the safest framework to target. I agree with Orka. And you can always change it later if so desired. RE: Can .NET 2.0 run on newer versions of .NET? - gigajew - Jan 21, 2018 (Jan 21, 2018 09:17 AM)HFDone Wrote: v2 will run on all versions if its installed (the same for all versions) and ppl dont get it 2.0 and 3.5 won’t run if 4.0+ is installed only (modern computers). Quit saying things that will keep people from using .NET 4.0. Do some actual research before you post such a statement https://en.m.wikipedia.org/wiki/.NET_Framework_version_history RE: Can .NET 2.0 run on newer versions of .NET? - Hoodie+ - Jan 21, 2018 (Jan 21, 2018 10:37 AM)gigajew Wrote: 2.0 and 3.5 won’t run if 4.0+ is installed only (modern computers). Quit saying things that will keep people from using .NET 4.0. Do some actual research before you post such a statement I see, is there a way to configure a 2.0 app to also run on 4.0+? RE: Can .NET 2.0 run on newer versions of .NET? - gigajew - Jan 21, 2018 (Jan 21, 2018 11:15 AM)Hoodie+ Wrote: I see, is there a way to configure a 2.0 app to also run on 4.0+? I don’t know if there are any hacks to do this, you’d have to do your own research on that. I would just target net 4.0 for anything, including malware RE: Can .NET 2.0 run on newer versions of .NET? - Hoodie+ - Jan 21, 2018 (Jan 21, 2018 11:26 AM)gigajew Wrote: I don’t know if there are any hacks to do this, you’d have to do your own research on that. I would just target net 4.0 for anything, including malware I found a stackoverflow post where it says that 4.0 and up is backwards compatible with 2.0, you just have to add supportedRuntime 4.0 to the config and it would work normally. RE: Can .NET 2.0 run on newer versions of .NET? - gigajew - Jan 21, 2018 (Jan 21, 2018 11:32 AM)Hoodie+ Wrote: I found a stackoverflow post where it says that 4.0 and up is backwards compatible with 2.0, you just have to add supportedRuntime 4.0 to the config and it would work normally. Hell, give it a try in a virtual machine, and it if works like that, make a tutorial thread. I bet a lot of people would be interested and thankful for that. RE: Can .NET 2.0 run on newer versions of .NET? - Ninja - Jan 21, 2018 (Jan 21, 2018 12:03 PM)gigajew Wrote: Hell, give it a try in a virtual machine, and it if works like that, make a tutorial thread. I bet a lot of people would be interested and thankful for that. From everything I find online it seems to work as long as you do this: https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/version-compatibility Of course it doesn't always work as expected, as explained here: https://softwareengineering.stackexchange.com/a/149140 RE: Can .NET 2.0 run on newer versions of .NET? - HFDone - Jan 21, 2018 (Jan 21, 2018 10:37 AM)gigajew Wrote: 2.0 and 3.5 won’t run if 4.0+ is installed only (modern computers). Quit saying things that will keep people from using .NET 4.0. Do some actual research before you post such a statement thats exactly what i say "v2 will run on all versions if its installed" 🤦♂ "and ppl dont get it" learn to read RE: Can .NET 2.0 run on newer versions of .NET? - Cyber Parasite - Jan 23, 2018 Use app config and supported runtime and it will probably run just fine. |