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)
-
0
Hi,
Running/adding migrations have been changed for Entity Framework core. Can you try to execute "Update-Database" in Package Manager Console ?
Thanks.
-
0
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
-
0
Thanks @alaamh.