I have a solution where my Sagas and hosting are defined in two seperate projects:
Project NSB => Defines class CreateAuthoritySetSaga : SqlSaga<...>
Project Webhost => References project NSB
Webhost assemblyfile defines the PromotionSqlScript generation:
[assembly: NServiceBus.Persistence.Sql.SqlPersistenceSettings(
MsSqlServerScripts = true,
ScriptPromotionPath = "$(SolutionDir)PromotedSqlScripts")]
But when I build the solution, only SQL scripts for "baseline" NServiceBus tables are created (Outbox, Subscription, Timeout). The folder for sagas is empty.
This question Unable to host an NServiceBus Saga from another Service with SQL Persistence suggest to collect SQL output from the separate projects. But isn't there a way to instruct NServiceBus.Persistence.Sql.MSBuild which assemblies to look for sagas?