猿问

如何使用 EntityFramworkcore 的不同版本进行数据库迁移

开发环境:vs2017

目标框架:

<TargetFramework>netcoreapp1.1</TargetFramework>
<PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback>

命令: dotnet ef migrations add VotePeriodV2 

错误:

Startup project '*.*.*.csproj' targets framework '.NETCoreApp' version '1.1'. This version of the Entity Framework Core .NET Command-line Tools only supports version 2.0 or higher. For information on using older versions of the tools, see https://go.microsoft.com/fwlink/?linkid=871254


胡子哥哥
浏览 638回答 1
1回答
随时随地看视频慕课网APP
我要回答