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

This post was most recently updated on July 31st, 2022. I 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: I suspect this can happen with any x86 runtimeIdentifier, but the one I had specified in my … Continue reading EF Core fails to load hostpolicy.dll when RuntimeIdentifier is win-x86