Fix Windows CoreRun.exe to work with CoreCLR/Mono xplat hosting API. (#32788)
authorJohan Lorensson <lateralusx.github@gmail.com>
Wed, 26 Feb 2020 07:24:00 +0000 (08:24 +0100)
committerGitHub <noreply@github.com>
Wed, 26 Feb 2020 07:24:00 +0000 (08:24 +0100)
commit81712f07cc15030940b39f3ff0da0dd0c69a25d4
treee3825eff0bbc4cc123aadd056b643c4f877dc403
parented8a5c52ceea2ad59f9acd1476f19abb8918fa31
Fix Windows CoreRun.exe to work with CoreCLR/Mono xplat hosting API. (#32788)

CoreRun.exe is shared between both CoreCLR and Mono. On Windows,
CoreRun.exe is still using ICLRRuntimeHost4 hosting API but Mono
doesn't implement that API, just the xplat hosting API. Fix change
CoreRun.exe on Windows to use xplat hosting API, so it works with
both CoreCLR and Mono on Windows. CoreRun on Unix already used
xplat hosting API.

Behaviour on CoreRun.exe Windows CoreCLR should be identical, since
implementation of xplat hosting API on CoreCLR uses ICLRRuntimeHost4
internally and calls to CreateAppDomainWithManager, ExecuteAssembly,
UnloadAppDomain2 and Stop look identical to what done in CoreRun.exe
before this fix.
src/coreclr/src/hosts/corerun/corerun.cpp
src/coreclr/src/hosts/corerun/logger.cpp
src/coreclr/src/hosts/corerun/logger.h