A little knowledge can be a dangerous thing.
Now that I’ve had a “run in” with depending on various .NET runtimes being installed on a user’s machine, I want to be as “safe” and code as defensively as possible.
However, if I add this to my App.config file:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v1.0.3705"/>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v2.0.50727"/>
<supportedRuntime version="v3.0"/>
<supportedRuntime version="v3.5"/>
<supportedRuntime version="v4.0"/>
<supportedRuntime version="v4.0.30319"/>
</startup>
…is it tantamount to wearing suspenders, a belt, AND a cat suit?
(I’m targeting .NET 4 “standard”)
No, but are you really using zero features of .NET 2.0+?