entity framework - Visual Studio 2017 mistakenly thinks EF 6 is installed -


i upgraded asp.net core, ef core class library solution visual studio 2017.

however when want run migrations commands add-migration following warning.

both entity framework core , entity framework 6 installed. entity framework core tools running. use 'entityframework\update-database' entity framework 6.

however don't have ef 6 installed

my csproj

    ...    <itemgroup>     <packagereference include="microsoft.aspnetcore.identity.entityframeworkcore" version="1.1.1" />     <packagereference include="microsoft.csharp" version="4.3.0" />     <packagereference include="microsoft.entityframeworkcore.design" version="1.1.1" />     <packagereference include="microsoft.entityframeworkcore.sqlserver" version="1.1.1" />     <packagereference include="microsoft.entityframeworkcore.tools" version="1.1.0" />     <packagereference include="microsoft.extensions.configuration.json" version="1.1.1" />     <packagereference include="system.collections" version="4.3.0" />     <packagereference include="system.linq" version="4.3.0" />     <packagereference include="system.runtime" version="4.3.0" />     <packagereference include="system.threading" version="4.3.0" />   </itemgroup>    <itemgroup condition=" '$(targetframework)' == 'net452' ">     <reference include="system" />     <reference include="microsoft.csharp" />   </itemgroup>    <itemgroup>     <dotnetclitoolreference include="microsoft.entityframeworkcore.tools.dotnet" version="1.0.0" />   </itemgroup>    <itemgroup>     <folder include="migrations\" />   </itemgroup>  </project> 

this can happen if had ef6 project open in vs. unload ef6, can use following command.

remove-module entityframework 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -