Specify which project file to use when inside project directory

asp.net-core-mvc asp.net-mvc entity-framework-core entity-framework-core-migrations

Question

Trying to use "dotnet ef" command in Package Manager Console. the PMC is cd to the .csproj directory, and still getting:

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

Tried use -p / --p and point to the .csproj file / directory - still same error.

Using .NET CORE, MVC project, Latest EF Core 2.0.2 version.

There's no so much valuable data on the internet about that problem, just a wild guess that dotnet ef command is looking for .exe file to run on.

Hoping for help.

0
1
3/17/2018 11:19:24 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow