EF 7 Beta 8 & # 8594; EF7 RC1 - can no longer create migrations

After trying to change an existing project from beta 8 to RC1, I get the following after launch dnx ef migrations add Init

System.TypeLoadException: Could not load type 'Microsoft.Data.Entity.Scaffolding.SqliteDesignTimeServices, EntityFramework.Sqlite.Design'.
  at Microsoft.Data.Entity.Design.Internal.DesignTimeServicesBuilder.ConfigureProviderServices (System.String provider, IServiceCollection services, Boolean throwOnError) [0x00000] in <filename unknown>:0 
  at Microsoft.Data.Entity.Design.Internal.DesignTimeServicesBuilder.Build (Microsoft.Data.Entity.DbContext context) [0x00000] in <filename unknown>:0 
  at Microsoft.Data.Entity.Design.MigrationsOperations.AddMigration (System.String name, System.String outputDir, System.String contextType) [0x00000] in <filename unknown>:0 
  at Microsoft.Data.Entity.Commands.Program+Executor+<>c__DisplayClass6_0.<AddMigration>b__0 () [0x00000] in <filename unknown>:0 
  at Microsoft.Data.Entity.Commands.Program+Executor.Execute (System.Action action) [0x00000] in <filename unknown>:0 
Could not load type 'Microsoft.Data.Entity.Scaffolding.SqliteDesignTimeServices, EntityFramework.Sqlite.Design'.

My file project.json, along with others, contains the following

"dependencies": {
  "EntityFramework.Commands": "7.0.0-rc1-final",
  "EntityFramework.SQLite": "7.0.0-rc1-final"
},
"commands": {
  "ef": "EntityFramework.Commands"
},

What do I need to do to resolve this error?

+4
source share
2 answers

Package names are case-sensitive on Linux and OS X due to the case-sensitive file system. Be sure to use EntityFramework.Sqlitenot EntityFramework.Sqlitein the project.json file . (See GitHub Issue dotnet / cli # 236 )

+6
source

/. "7.0.0-rc1-final".

"7.0.0-rc1-final" , , - . . annoncement repro

"dependencies": {
  "EntityFramework.Commands": "7.0.0-rc1-final",
  "EntityFramework.SQLite": "7.0.0-rc1-final"
},
0

Source: https://habr.com/ru/post/1616870/


All Articles