Piotrek
Piotrek

Reputation: 11211

Adding migrations: System.MissingMethodException: Method not found ILibraryManager

Full error:

System.MissingMethodException: Method not found: 'Microsoft.Extensions.PlatformAbstractions.ILibraryManager Microsoft.Extensions.PlatformAbstractions.PlatformServices.get_LibraryManager()'. at Microsoft.Data.Entity.Commands.Program.ValidateProject(String targetProject) at Microsoft.Data.Entity.Commands.Program.<>c__DisplayClass2_7.b__15() at Microsoft.Dnx.Runtime.Common.CommandLine.CommandLineApplication.Execute(String[] args) at Microsoft.Data.Entity.Commands.Program.Main(String[] args) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider serviceProvider) at Microsoft.Dnx.ApplicationHost.Program.<>c__DisplayClass3_0.b__0() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute()

Command that I try to run:

dnx ef migrations add test1

Version of EF commands:

Entity Framework Commands 7.0.0-rc1-16348

Version of dnx:

Microsoft .NET Execution environment Clr-x86-1.0.0-rc2-16595

My project currently use RC1. It all worked before.

Upvotes: 0

Views: 877

Answers (1)

Victor Hurdugaci
Victor Hurdugaci

Reputation: 28425

Mostly sure the issue is the fact that you're mixing RC1 packages with RC2 runtime. Downgrade the runtime to RC1 or switch from dnx to dotnet and upgrade the packages to RC2

Upvotes: 1

Related Questions