zoukankan      html  css  js  c++  java
  • 未找到与命令“dotnet-ef”匹配的可执行文件

    未找到与命令“dotnet-ef”匹配的可执行文件

    Specific to VS2017 15.3 or greater and ASP.NET CORE 2.0 or later...

    Install nuget for db provider via command line or nuget package manager.

    dotnet add package Microsoft.EntityFrameworkCore.SqlServer
    

    Add following section to .csproj

    <ItemGroup>
    <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" 
        Version="2.0.0" />
    </ItemGroup>
    

    Install design time tools via commandline or nuget manager in VS2017.

    dotnet add package Microsoft.EntityFrameworkCore.Design
    

    This enables dotnet ef * at the command line in the project directory.

    Enables dotnet ef * commands at the command line in the project directory,

    dotnet ef migrations add Initial
    dotnet ef database update Initial
    dotnet ef dbcontext scaffold 
    
  • 相关阅读:
    ZOJ 1450
    HDU 3932
    POJ 3348
    POJ 1873
    POJ 1228
    POJ 2007
    POJ 1113
    POJ 1696
    POJ 1329
    HDU 3432
  • 原文地址:https://www.cnblogs.com/dupeng0811/p/no-executable-found-matching-command-dotnet-ef.html
Copyright © 2011-2022 走看看