http://bugs.winehq.org/show_bug.cgi?id=34756
--- Comment #7 from Alistair Leslie-Hughes leslie_alistair@hotmail.com 2013-10-24 01:48:39 CDT --- Created attachment 46395 --> http://bugs.winehq.org/attachment.cgi?id=46395 Sample test case
The call to GetRequestedRuntime, it assumes to have an "application.exe.config" file in the application directory. It appears to parse this file and workout which runtime to use.
The example shows how VS is using this function, which follows the MSDN description of this function.
When METAHOST_POLICY_APPLY_UPGRADE_POLICY is used on the flags, then RUNTIME_INFO_UPGRADE_VERSION sould be used in the calls to get_runtime_info.