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 
    
  • 相关阅读:
    01-Django 简介
    函数及函数的嵌套等
    循环及循环嵌套
    运算符
    if, elif, else及if嵌套
    变量及变量计算和引用
    Python的3种执行方式
    Jmeter设置默认中文启动
    Vysor
    python基础学习(二)
  • 原文地址:https://www.cnblogs.com/dupeng0811/p/no-executable-found-matching-command-dotnet-ef.html
Copyright © 2011-2022 走看看