最佳答案
这就是我看到的
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
,而不是相反。我还是个新手,所以如果你能帮忙,我会很感激的。