Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Add-Migration Unidade - Método nao encontrado

PM> add-migration Unidade
System.MissingMethodException: M�todo n�o encontrado: 'System.IServiceProvider Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection)'.
   em Microsoft.EntityFrameworkCore.Design.Internal.StartupInvoker.ConfigureServices()
   em Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations..ctor(IOperationReporter reporter, Assembly assembly, Assembly startupAssembly, String environment, String contentRootPath)
   em Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations..ctor(IOperationReporter reporter, Assembly assembly, Assembly startupAssembly, String environment, String projectDir, String contentRootPath, String rootNamespace)
   em Microsoft.EntityFrameworkCore.Design.OperationExecutor.<>c__DisplayClass4_0.<.ctor>b__4()
   em Microsoft.EntityFrameworkCore.Internal.LazyRef`1.get_Value()
   em Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImpl(String name, String outputDir, String contextType)
   em Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0`1.<Execute>b__0()
   em Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
M�todo n�o encontrado: 'System.IServiceProvider Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection)'.
PM> 
1 resposta
solução!

Resolvido! Microsoft.Extensions.DependencyInjection estava em uma versão mais recente, bastou fazer o downgrade desse pacote que o Add-Migration funcionou!!