【发布时间】:2013-05-16 17:38:20
【问题描述】:
这就是我在看的东西
PM> Add-Migration AddedSubdivion -StartUpProjectName Data -Verbose
Using StartUp project 'Data'.
Using NuGet project 'Registry'.
Could not load assembly 'Registry'. (If you are using Code First Migrations inside
Visual Studio this can happen if the startUp project for your solution does not
reference the project that contains your migrations. You can either change the startUp
project for your solution or use the -StartUpProjectName parameter.)
我不知道它为什么要引用Registry 项目。 Registry 取决于 Data,而不是相反。我对此很陌生,所以我很感激任何帮助。
【问题讨论】:
-
Registry如何依赖Data,Data成为启动项目?
-
注册表是我的主要项目,数据只包含我所有的模型类。我选择哪个启动项目都没有关系,在这两种情况下都会出错。
-
谷歌员工在这里。 +1 提及启动项目。这很重要。
标签: entity-framework entity-framework-migrations