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 Directory separator for TargetPath is not normalized · Issue #10627 · dotnet/sdk · GitHub since the problem is caused both due to NServiceBus and dotnet SDK.

Thanks!

Hi Tal

We did Simplify the targets file by bording · Pull Request #404 · Particular/NServiceBus.Persistence.Sql · GitHub as part of the v5 release that should address this issue. Can you give it a go and report back?

Regards
Daniel