We have a set of services that we are migrating to dotnet core and NServiceBus7 at the moment. We have a wrapper project that facilitates configuration of endpoints which references
NServiceBus.Persistence.Sql (4.5.1). From the actual service endpoints in dotnet core (targeting netcoreapp2.2), we reference our own wrapper assembly, which brings in
NServiceBus.Persistence.Sql via transitive nuget dependency.
All work fine so far, apart from the saga create/drop scripts that are supposed to be generated during build process inside bin/…/NServiceBus.Persistence.Sql/Sagas folder. The Outbox/Subscription/Timeout create/drop scripts are generated successfully though.
As a solution, if we reference the NServiceBus.Persistence.Sql package directly from the endpoint project, saga scripts are generated fine during build.
I have gone over the relevant documentation several times so far, and not sure if this is addressed anywhere. Is there a endpoint configuration that I am missing somewhere?
The issue happens with both Saga and SqlSaga derived sagas.
Thanks in advance.