An error occurred while loading required library hostpolicy.dll during Scaffold-DbContext

0

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\]
.net-core
ef-core-3.0
asked on Stack Overflow Aug 12, 2019 by Ronald Ramos

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0