The package "Microsoft.EntityFrameworkCore.Tools.DotNet 1.0.0-msbuild2-final" has the package type "DotnetCliTool", which is not supported by the project

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

The package 'Microsoft.EntityFrameworkCore.Tools.DotNet 1.0.0-msbuild2-final' has the package type DotnetCliTool, which is not supported by the project 'src \ WebApplication1'.

How to solve it?

+6
source share
1 answer

I solve the problem open xx.csproj add lines:

<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="1.0.0-msbuild2-final" /> <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0-msbuild2-final" /> 
+14
source

Source: https://habr.com/ru/post/1013643/


All Articles