Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package 'Microsoft.EntityFrameworkCore.Tools.DotNet 1.0.0-msbuild2-final' has a package type 'DotnetCliTool' that is not supported by project

When I use Visual Studio 2017 RC to create netcore project and Nuget Microsoft.EntityFrameworkCore.Tools.DotNet, but I get an error.

Package 'Microsoft.EntityFrameworkCore.Tools.DotNet 1.0.0-msbuild2-final' has a package type 'DotnetCliTool' that is not supported by project 'src\WebApplication1'.

How do I resolve it?

like image 696
xiaobo Avatar asked Dec 30 '16 14:12

xiaobo


1 Answers

Open your .csproj file and add the lines:

<PackageReference Include="Microsoft.EntityFrameworkCore.Tools"
    Version="1.0.0-msbuild2-final" />
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet"
    Version="1.0.0-msbuild2-final" />
like image 91
xiaobo Avatar answered Oct 30 '22 19:10

xiaobo