Can't add a manual migration
I am using the latest System.Data.Sqlite.EF6 - version 1.118.0 (and the earliest I can find on Nigget is 1.115).
When trying to add a migration with add-migration I get:
PM> Add-Migration AddTotaPayloadLbs System.IO.FileLoadException: Could not load file or assembly 'System.Data.SQLite.EF6, Version=1.0.112.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Data.SQLite.EF6, Version=1.0.112.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' at System.Data.SQLite.EF6.Migrations.SQLiteMigrationSqlGenerator..ctor() at FSTRaK.Migrations.Configuration..ctor() in C:\Users\Oren\source\repos\FSTRAK\FSTRaK\Models\Entity\Migrations\Configuration.cs:line 15 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Data.Entity.Migrations.Utilities.MigrationsConfigurationFinder.FindMigrationsConfiguration(Type contextType, String configurationTypeName, Func2 noType, Func3 multipleTypes, Func3 noTypeWithName, Func3 multipleTypesWithName) at System.Data.Entity.Infrastructure.Design.Executor.GetMigrationsConfiguration(String migrationsConfigurationName) at System.Data.Entity.Infrastructure.Design.Executor.ScaffoldInternal(String name, DbConnectionInfo connectionInfo, String migrationsConfigurationName, Boolean ignoreChanges) at System.Data.Entity.Infrastructure.Design.Executor.Scaffold.<>c__DisplayClass0_0.<.ctor>b__0() at System.Data.Entity.Infrastructure.Design.Executor.OperationBase.<>c__DisplayClass4_01.<Execute>b__0()
at System.Data.Entity.Infrastructure.Design.Executor.OperationBase.Execute(Action action)
WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Could not load file or assembly 'System.Data.SQLite.EF6, Version=1.0.112.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) `
@o4oren
Did you manage to solve the problem?
If so, how?
I'll try to figure out the library. Could you tell me which commands to enter to perform the migration?
I don't remember what I did. I didn't manage to solve this properly, but I worked around it somehow.
On Tue, 5 Dec 2023, 16:54 jhon65496, @.***> wrote:
@o4oren https://github.com/o4oren Did you manage to solve the problem? If so, how?
I'll try to figure out the library. Could you tell me which commands to enter to perform the migration?
— Reply to this email directly, view it on GitHub https://github.com/bubibubi/sqliteef6migrations/issues/20#issuecomment-1840954004, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFTF65RMD45DRTSGDUBS5TLYH4YUFAVCNFSM6AAAAAA5FC4DPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBQHE2TIMBQGQ . You are receiving this because you were mentioned.Message ID: @.***>