You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the part with the, If this causes a circular dependency, you can update the base output path of the migrations project instead,
since now the reference is not added from the original project to the migrations project directly (due to the circular dependency), the original project will not know about the migrations project, and migration projects assembly needs to be loaded manually:
The text was updated successfully, but these errors were encountered:
ajcvickers
changed the title
With curcular dependency, need to LoadFromAssemblyPath
With circular dependency, need to LoadFromAssemblyPath
Jun 14, 2023
The Migrations project needs to reference the WebApi project since it is the WebApi project that contains all the domain classes. The Migrations project only contains the migrations, nothing else.
in the part with the,
If this causes a circular dependency, you can update the base output path of the migrations project instead
,since now the reference is not added from the original project to the migrations project directly (due to the circular dependency), the original project will not know about the migrations project, and migration projects assembly needs to be loaded manually:
AssemblyLoadContext.Default.LoadFromAssemblyPath(migrationDllPath);
Otherwise on the startup the
... x.MigrationsAssembly("MigrationsAssemblyName")
will throw an exception that assembly was not found.Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: