【发布时间】:2018-08-26 19:52:42
【问题描述】:
尝试在包管理器控制台中使用“dotnet ef”命令。 PMC 是 cd 到 .csproj 目录,仍然得到:
dotnet : Specify which project file to use because this 'C:\Users\PC-NAME\Source\Repos\TestProject\Test" contains more than one project file.
At line:1 char:1
dotnet ef migrations add TestMigration
+ CategoryInfo : NotSpecified: (Specify which p...e project file.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
尝试使用 -p / --p 并指向 .csproj 文件/目录 - 仍然是同样的错误。
使用 .NET CORE、MVC 项目、最新的 EF Core 2.0.2 版本。
没有那么多有价值的数据 在互联网上关于这个问题,只是一个疯狂的猜测 该 dotnet ef 命令正在寻找要运行的 .exe 文件。
希望得到帮助。
【问题讨论】:
-
为什么不直接使用EF Core PMC commands?
标签: asp.net-mvc asp.net-core-mvc entity-framework-core entity-framework-core-migrations