[英]Package Manager Console Visual Studio 2019 Returns New Line
When trying to update my SQL Database from the Package Manager Console in Visual Studio 2019 (latest version) I always get this.当尝试从 Visual Studio 2019(最新版本)中的 Package 管理器控制台更新我的 SQL 数据库时,我总是得到这个。 It doesn't execute the command therefore it doesn't update the database.它不执行命令,因此不更新数据库。 I have tried multiple solutions like restarting PC and Visual Studio, even reinstalling it, but with no success.我尝试了多种解决方案,例如重新启动 PC 和 Visual Studio,甚至重新安装它,但没有成功。 I am always running VS as an Administrator but it doesn't change anything.我总是以管理员身份运行 VS,但它并没有改变任何东西。
Any help is appreciated.任何帮助表示赞赏。
Okay so after more debugging I found where the problem was.好的,经过更多调试后,我发现了问题所在。 In case of Visual Studio, I went to Visual Studio Installer and installed this one too.如果是 Visual Studio,我也去了 Visual Studio Installer 并安装了这个。 After updating Visual Studio it seemed to add migrations just fine.更新 Visual Studio 后,它似乎添加了迁移就好了。
Update-Database -ConnectionString
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.