I am using VS 2019 Package Manager Console. I've been using this Scaffold-DbContext successfully in the past days. But today, suddenly I got an error and I can't seem to figure it out. Restart didn't work out. Clean/Rebuild didn't help, either.
PM> Scaffold-DbContext "Server=MYPC;Database=MyProject;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -Force
Failed to load the dll from [D:\Source\Repos\MyProject\bin\Debug\netcoreapp3.0\win-x86\hostpolicy.dll], HRESULT: 0x800700C1
An error occurred while loading required library hostpolicy.dll from [D:\Source\Repos\MyProject\bin\Debug\netcoreapp3.0\win-x86\]
User contributions licensed under CC BY-SA 3.0