NSB version 7.5
NServiceBus.Persistence.SQL version 6.2
NServiceBus/SqlServer version 6.3.1
We’re seeing an odd problem with scripts being deleted when we run the project without building.
Any time sources change and we build the project, the operational scripts are generated successfully to the bin\Debug\NServiceBus.Persistence.Sql\MsSqlServer directory.
If we run the project without needing to build/rebuild, the scripts disappear immediately, even before any of our startup breakpoints get hit.
This is causing us to get the following error (EnableInstallers() is being used in our startup code):
Expected ‘C:\xxxxx\bin\Debug\NServiceBus.Persistence.Sql\MsSqlServer\Subscription_Create.sql’ to exist. It is possible it was not deployed with the endpoint.
. . . at ScriptLocation.ValidateScriptExists(String createScript) in /_/src/SqlPersistence/ScriptLocation.cs:line 32 . . .
Is this expected behavior? Is there anything we can do to cause the script removal to be skipped?
Let me know if any additional info would be helpful.