Force an application to run under specific .NET runtime version?

Yes, use the <supportedRuntime> element in the .exe.config file. For example:

<configuration>
   <startup>
      <supportedRuntime version="v2.0.50727"/>
   </startup>
</configuration>

Leave a Comment