Ao executar o comando Add-Migration Setup para a criação da tabela no SQL Server no PM a mensagem abaixo ocorre mesmo eu fazendo a referência do projeto de api com o shared. O sistema até chega processar algo, mas logo dá esse error.
No DbContext was found in assembly 'YouLearn.Api'. Ensure that you're using the correct assembly and that the type is neither abstract nor generic.
Segue o link do repositório da solução
<connectionStrings> <add name="EFContexto" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;Initial Catalog=AgilManager;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\Agil.mdf" providerName="System.Data.SqlClient" /> </connectionStrings>