C# 无法使用.NET Core中的EF更新数据库

C# 无法使用.NET Core中的EF更新数据库,c#,entity-framework,postgresql,.net-core,C#,Entity Framework,Postgresql,.net Core,我正在使用PostgreSQL数据库和实体框架的NpgSQL包。我在模型中做了一些更改,现在正在尝试迁移数据库。但是,进入后: PM> Update-Database -verbose 我得到: Using framework 'netcoreapp1.0' Using data directory 'D:\GIT\foo\Foo\src\Foo.WebApp\.\bin\Debug\netcoreapp1.0' Build started... Build failed. 我必须使用

我正在使用PostgreSQL数据库和实体框架的NpgSQL包。我在模型中做了一些更改,现在正在尝试迁移数据库。但是,进入后:

PM> Update-Database -verbose
我得到:

Using framework 'netcoreapp1.0'
Using data directory 'D:\GIT\foo\Foo\src\Foo.WebApp\.\bin\Debug\netcoreapp1.0'
Build started...
Build failed.

我必须使用
dotnet build
来发现构建错误。然而,构建是成功的。有没有其他方法可以解决阻止我的数据库更新的问题?

我也遇到了同样的问题,但只是切换到命令行,一切都正常了。(我仍然无法解释PackageManager控制台中的错误。)

从Windows PowerShell:

PS C:\{Proj folder}> dotnet ef database update

迁移配置文件如何。。。它是否正确显示所有更改?