Add delay load hook for singlefilehost and enable delay load of version.dll (#87495)
authorElinor Fung <elfung@microsoft.com>
Wed, 14 Jun 2023 13:40:36 +0000 (06:40 -0700)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 13:40:36 +0000 (06:40 -0700)
commit8d3d7eaac5e4242ae30c4ad334b558d6cbd1e53a
treec363a76212869a5dc838f12ffa9842bf9ff15b13
parenta4ac0af11be1c05b2f0cae85f52f96d66ea2a261
Add delay load hook for singlefilehost and enable delay load of version.dll (#87495)

`coreclr` delay loads `version.dll` and adds a hook such that it loads from the system directory. In single-file, we lost this behaviour since it uses static library version of `coreclr`. This adds the same mechanism to single-file.
src/coreclr/dlls/mscoree/CMakeLists.txt
src/native/corehost/apphost/static/CMakeLists.txt
src/native/libs/Common/delayloadhook_windows.cpp [moved from src/coreclr/dlls/mscoree/delayloadhook.cpp with 97% similarity]