Reputation: 9391
When I try to install the package Microsoft.EntityFrameworkCore.Tools.DotNet version 1.1.0-preview4-final I have the error (translated from french) :
The pakage Microsoft.EntityFrameworkCore.Tools.DotNet 1.1.0-preview4-final' has a package type 'DotnetCliTool' that is not supported by project 'my web app project'
I have already check :
Environment info :
The few things I found about errors like this one included to update project.json, file I don't have in my solution.
I also try to add this line in my csproj :
<ItemGroup><DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0-msbuild3-final" /></ItemGroup>
Someone have an idea about what happens here ? How can I manage db migrations with .NETCore 1.1 ?
Upvotes: 3
Views: 1635
Reputation: 2747
If you are using MSbuild
(Visual Studio 2017) then you should use Microsoft.EntityFrameworkCore.Tools.DotNet
in 1.0.0-msbuild3-final
verison
To do this, update your csproj and add the next line in the same ItemGroup than the NuGet package references :
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0-msbuild3-final" />
Upvotes: 4