EF Core fails to load hostpolicy.dll when RuntimeIdentifier is win-x86

This post was most recently updated on May 6th, 2020.Ran into another interesting one when working with a .NET Core 3.0 project and Entity Framework Core – this time, RuntimeIdentifier configuration causing trouble. In short, running Update-Database (to apply code-first migrations to your local database) locally would return this, annoying error: Failed to load the dll from [runtimepath]\win-x86\hostpolicy.dll], HRESULT: 0x800700C1 An error occurred while loading required library hostpolicy.dll from [runtimepath]\win-x86\] I suspect this can happen with any x86 runtimeIdentifier, but the one I had specified … Continue reading EF Core fails to load hostpolicy.dll when RuntimeIdentifier is win-x86