entity-framework - Entity Framework 添加迁移失败,出现 "Could not find assembly"

标签 entity-framework asp.net-core .net-core

在 Visual Studio 中使用包管理控制台,当我在 Company.Project1 (.NET Core 1.1) 上运行“Add-Migration MyMigrationName”时出现错误

Could not find assembly 'C:\path\to\my\solution\Company.Project2\.\bin\Debug\netcoreapp1.1\Company.Project1.dll'.

最佳答案

您运行迁移的项目必须是启动项目。

关于entity-framework - Entity Framework 添加迁移失败,出现 "Could not find assembly",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41565176/

相关文章:

c# - 动态构建包含 Where 过滤器

asp.net-core - 来自 asp.net core 2.2 信号器控制台应用程序的服务器集线器连接

c# - 为什么派生自 ControllerBase 与 Controller for ASP.NET Core Web API?

c# - 根据优先级数组对字符串数组进行排序

entity-framework - 如何首先在 EF 4.1 代码中映射父列

c# - Entity Framework 向所有查询添加 where 子句

c# - 英孚。连接未关闭。连接的当前状态是 connecting

c# - asp.net core 中的部分标签助手和 HTML 助手有什么区别?

.net-core - .Net Core 3.1 可以在 Orange Pi Zero 上运行吗?

c# - 调用 Blazor 应用程序时,Postman 调用无限旋转