Unable to generate deps.json to enable migrations

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

Question

I use Asp.net core mvc for web developing. I want to enable entityframework migrations via Entity Framework Core .NET Command Line Tools:

dotnet ef migrations add InitialDatabase

but an error occurs: unable to generate deps.json, it may have been already generated: C:\Program Files\dotnet\sdk\2.0.2\Sdks\Microsoft.NET.Sdk\build\GenerateDeps\GenerateDeps.proj

Are there any .NET Core configs that I missed?

1
6
11/19/2017 2:05:44 PM

Popular Answer

My project was using dotnet core 2.2. I had to use dotnet-svcutil 1.0.4 because higher versions did not work for me. Installing dotnet-svcutil did the trick for me. You can search for dotnet-svcutil under "Manage Packages for solution" from Nuget Packages Manager under tools and then install

0
7/30/2019 9:11:23 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