SupportedRuntimes Property

Specifies the version or versions of the common language runtime that must be present on a target computer in order for a .NET Framework launch condition to succeed. Defaults to the runtime version shipped with the version of Visual Studio that you are using.

Multiple versions can be specified by separating them with semicolons; if any of the specified versions are found, the launch condition will succeed.

Note   If your deployment project includes custom actions that have a dependency on the .NET Framework, the first version found (in the order listed) will be loaded to run the custom action. For this reason, you should list the most recent version first.

Remarks

In general, .NET Framework applications require the same runtime version that they were built against. You should only override the default setting if you have thoroughly tested your application against any versions that you specify.

**Caution   **If you override this property, you may need to modify the InstallUrl property as well; otherwise, the user will be redirected to a Web page that contains the wrong runtime version. For more information, see InstallUrl Property.

See Also

Working With Multiple Versions of the .NET Framework | Side-by-Side Execution | Deployment of .NET Framework Applications | .NET Framework Launch Condition | Launch Condition Management in Deployment