I am writing a WPF application that all source code is compatible with .NET 3.5 and 4.5. This means that if I change the .NET target in the properties to either 3.5 or 4.5, this will work fine and work without errors.
Interestingly, in any case, my application file can work on both 3.5 and 4.5.NET (for example: Windows 7 and Windows 8.1), without complie 2 for each .NET? Thanks!
Edit:
When I copy the .NET 3.5 application under Windows 8.1, Windows refuses to run my application and requires the installation of .NET 3.5. So, if it is only compatible with .NET 3.5, it cannot run the application on a .NET 4.5 PC.
source share