efcore icon indicating copy to clipboard operation
efcore copied to clipboard

RC2 : EF6.1.3 tooling (Code first migration)

Open marcusien opened this issue 10 years ago • 3 comments

I'd like to use code first migrations from EF6.1.3 toolings on .NET Core project. But even if I have the EF package in my project, the package manager console tells me this

The EntityFramework package is not installed on project 'TreeViewBuilder.Data'.

Have the same usage of EF on other projects (WPF for instance) and it works perfectly. Is there a workaround ?

marcusien avatar Jun 08 '16 14:06 marcusien

Could you share the packages.config file of the TreeViewBuilder.Data project?

bricelam avatar Jun 08 '16 16:06 bricelam

Sorry I forgot a detail cause I originally post this issue on asp core git.

I want to use the code first migrations tools with .NET Core project (class library). There's no packages.config in my project so. Everything is inside project.json et project.lock.json

marcusien avatar Jun 09 '16 07:06 marcusien

EF6.x commands are currently not supported in project.json/xproj based projects. The project system for these projects is still pre-release and by the time it RTMs will be more integrated with the existing csproj/MSBuild project system. For this reason we aren't planning to update the EF6.x commands to work with project.json/xproj until the consolidation is done.

rowanmiller avatar Jun 14 '16 18:06 rowanmiller