Persistence SQL Scripts with ASP.NET Core Single-file executable issues

An interesting buggy behavior I found while persistence execution scripts did not run when publishing my dotnet application using the /p:PublishSingleFile attribute:

Hi Tal,

Thanks for linking that here. We’ll keep an eye on it. At first glance, it’s likely they aren’t parsing paths correctly on Linux. Possibly a \ vs. / thing.

– Kyle

Hey Kyle,

Please see swaroop-sridhar response at https://github.com/dotnet/runtime/issues/2288 since the problem is caused both due to NServiceBus and dotnet SDK.

Thanks!

Hi Tal

We did https://github.com/Particular/NServiceBus.Persistence.Sql/pull/404 as part of the v5 release that should address this issue. Can you give it a go and report back?

Regards
Daniel