Académique Documents
Professionnel Documents
Culture Documents
No one assigned
I want to Migrate my Database with Models. I am using EF Core 2.0 Preview.
Labels
Projects
Packahe & Tools None yet
<ItemGroup> No milestone
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0-preview2-final" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="2.0.0-pre
Notifications
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.0.0-preview2-final" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Design" Version="2.0.0-previe
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.0.0-preview2-final" / 8 participants
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0-
</ItemGroup>
Ensure...
Yes, i am using 2.0 SDK and tried for dotnet restored on project but still got same error.
Added Microsoft.EntityFrameworkCore.Design and also change all to packages to preview1 still facing
same error!
yes, project build successfully. But gives only error for CLI
...and you're certain dir lists your *.csproj and dotnet --info says 2.0.0?
(I know these are stupid questions, but I honestly have no idea what could be going wrong.)
1 1
You may need to follow up on dotnet/cli. Something is going wrong before the EF code gets a chance to
run.
Product Information:
Version: 2.0.0-preview1-005977
Commit SHA-1 hash: 414cab8a0b
Runtime Environment:
OS Name: Windows
OS Version: 10.0.15063
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.0.0-preview1-005977\
Microsoft .NET Core Shared Framework Host
Version : 2.0.0-preview1-002111-00
Build : 1ff021936263d492539399688f46fd3827169983
If you want to check on my machine then i will give remote access, so you can see what's going wrong.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<MvcRazorCompileOnPublish>true</MvcRazorCompileOnPublish>
<UserSecretsId>aspnet-CodeFirst-DB7142CA-3EB8-4FB3-9C4A-0173586B87FB</UserSecretsId>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0-preview1-final" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="2.0.0-pre
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.0.0-preview1-final" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Design" Version="2.0.0-previe
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.0.0-preview1-final" /
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0-
</ItemGroup>
</Project>
I had to remove PackageTargetFallback due to this NuGet/NuGet.Client#1495 and I could not find where
AssetTargetFallBack is set.
For best user experience, use PMC commands for EF (Add-Migration & friends) in PMC.
No executable found matching command "dotnet-ef" even after adding CLI #712 Closed
when i changed it to <DotNetCliToolReference> and then dotnet restore , this fixed it.
eg Use:
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" />
Not
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" />
14
My God, this library mangement is from github, orginally a core 1.1 web app I hope realy with 2.0 and
webpack things will be stable and change too much.
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" />
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools"
Version="2.0.0" />
</ItemGroup>
4
ralmsdeveloper referenced this issue 27 days ago
Want to migrate on dnx to cli with entity framework core #10196 Closed
I hade the some trouble and I fix this change the Microsoft.EntityFramework.Tools.Dotnet from the First
<ItemGroup> like this:
dotnet : dotnet-ef
.NET (2.0.3)
Product Information:
Version: 2.0.3
Commit SHA-1 hash: 12f0c7efcc
Runtime Environment:
OS Name: Windows
OS Version: 10.0.15063
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.0.3\
Version : 2.0.3
Build : a9190d4a75f4a982ae4b4fa8d1a24526566c69df