Quando tento gerar uma migration no projeto estou levando o seguinte erro.
PM> Add-Migration "AddDescontoProposta"
Build started...
Build succeeded.
System.BadImageFormatException: Could not load file or assembly 'PropostaOnline.WebApi, Culture=neutral, PublicKeyToken=null'. Foi feita uma tentativa de se carregar um programa com um formato incorreto.
File name: 'PropostaOnline.WebApi, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.get_StartupAssembly()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.get_MigrationsOperations()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImpl(String name, String outputDir, String contextType, String namespace)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigration.<>c__DisplayClass0_0.<.ctor>b__0()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0`1.<Execute>b__0()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
Could not load file or assembly 'PropostaOnline.WebApi, Culture=neutral, PublicKeyToken=null'. Foi feita uma tentativa de se carregar um programa com um formato incorreto.
Alguém poderia me dar um hep? para resolver essa migração.