Base solution for your next web application
Open Closed

1.1 & .NET Core/jQuery EF Issue #3016


User avatar
0
kfrancis created

Hey,

Just picked up the latest update, but I can't seem to run the following on the EntityFrameworkCore project (or anywhere really): <ins>dotnet ef database update</ins>

I get: No executable found matching command "dotnet-ef"

Any ideas?

dotnet output:

Microsoft .NET Core Shared Framework Host

Version : 1.1.0 Build : 928f77c4bc3f49d892459992fb6e1d5542cb5e86

Usage: dotnet [common-options] [[options] path-to-application]

Build is fine, restore through build seemed fine, though running dotnet restore gives:

C:\Program Files\dotnet\sdk\1.0.3\NuGet.targets(97,5): error : Package Microsoft.Composition 1.0.27 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package Microsoft.Composition 1.0.27 supports: portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259) [C:\Users\kfrancis.CLINICALSYSTEMS\Downloads\New folder (2)\CabMD\CSS.CabMD.sln] C:\Program Files\dotnet\sdk\1.0.3\NuGet.targets(97,5): error : One or more packages are incompatible with .NETCoreApp,Version=v1.1. [C:\Users\kfrancis.CLINICALSYSTEMS\Downloads\New folder (2)\CabMD\CSS.CabMD.sln] C:\Program Files\dotnet\sdk\1.0.3\NuGet.targets(97,5): error : Package Microsoft.Composition 1.0.27 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package Microsoft.Composition 1.0.27 supports: portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259) [C:\Users\kfrancis.CLINICALSYSTEMS\Downloads\New folder (2)\CabMD\CSS.CabMD.sln] C:\Program Files\dotnet\sdk\1.0.3\NuGet.targets(97,5): error : One or more packages are incompatible with .NETCoreApp,Version=v1.1. [C:\Users\kfrancis.CLINICALSYSTEMS\Downloads\New folder (2)\CabMD\CSS.CabMD.sln]


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Running/adding migrations have been changed for Entity Framework core. Can you try to execute "Update-Database" in Package Manager Console ?

    Thanks.

  • User Avatar
    0
    alaamh created

    Added this to make it work:

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

    and install Install-Package System.Diagnostics.DiagnosticSource -Pre

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @alaamh.