Hello. I created an issue at https://github.com/Particular/NServiceBus.AzureFunctions.ServiceBus/issues/125 but maybe this place is better for discussing it.
The generated SQL Script isn’t found when running NServiceBus within Azure Functions using the 0.5.0 NServiceBus.AzureFunctions.ServiceBus packade (along side the 6.0.4 NServiceBus.Persistence.Sql).
The endpoint is looking in different locations based on how we start the function:
Different locations based on how we start the endpoint:
Visual Studio:
System.Private.CoreLib: Exception while executing function: Core. NServiceBus.Persistence.Sql: Expected 'C:\Program Files\Microsoft\Azure Functions Core Tools\NServiceBus.Persistence.Sql\MsSqlServer\Outbox_Create.sql' to exist. It is possible it was not deployed with the endpoint.
Rider 2020.3:
System.Private.CoreLib: Exception while executing function: Core. NServiceBus.Persistence.Sql: Expected 'C:\Users\username\AppData\Roaming\JetBrains\Rider2020.3\azure-functions-coretools\3.0.3233\NServiceBus.Persistence.Sql\MsSqlServer\Outbox_Create.sql' to exist. It is possible it was not deployed with the endpoint.
func start from the CLI:
System.Private.CoreLib: Exception while executing function: Core. NServiceBus.Persistence.Sql: Expected 'C:\Users\username\AppData\Local\AzureFunctionsTools\Releases\3.18.0\cli_x64\NServiceBus.Persistence.Sql\MsSqlServer\Outbox_Create.sql' to exist. It is possible it was not deployed with the endpoint.
Any ideas?