I built a program in C # .NET 2.0, which also works fine in frameworks 3.0 and 3.5.
But if the .NET Framework 4.0 is the only installed infrastructure, it does not work, it requires the user to install 2.0.
I found the following configuration on google:
<startup>
<requiredRuntime safemode="true" imageVersion="v4.0.30319" version="v4.0.30319"/>
</startup>
After adding this to app.config, my program runs on the .NET Framework 4.0 without problems!
What I'm looking for is a .NET Any Framework configuration that runs my program under .NET 2.0, if installed, and also in .NET 4.0.
How to do it?
source
share