Is it possible to have a single .NET exe operate on all versions of .NET from 2.0 through 4.5 without having separate binaries?
Assume all I need to do is Console.Writeline("Hello world");
Yes, just make sure to target the framework .Net 2.0.
You may see: Version Compatibility in the .NET Framework
The .NET Framework 4.5 is backward-compatible with applications that were built with the .NET Framework versions 1.1, 2.0, 3.0, 3.5, and 4. In other words, applications and components built with previous versions of the .NET Framework will work on the .NET Framework 4.5.
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