I am trying to run a .NET Core 3.1 WPF application on a Windows 7 Embedded VM. Unfortunately, Windows 7 Embedded does not officially support .NET Core. Is there a workaround to get this to work anyway?
I have already tried publishing the app as a self-contained package, and as a single file (which is also self-contained), hoping that this would include all the necessary dependencies. But unfortunately, this didn't work. The event viewer showed me this exception:
Message: Failed to load the dll from (path)\hostfxr.dll, HRESULT:0x80070057 The library hostfxr.dll was found, but loading it from (path)\hostfxr.dll failed - Installing .NET Core prerequisites might help resolve this problem. (download link)
But of course that installer does not work on Windows 7 embedded ("This update is not applicable to your computer").
Is there a way to manually include all necessary dependencies, to get this to load anyway?
User contributions licensed under CC BY-SA 3.0