How to get actual path to executable when using .netcore 3.0 and using the /p:PublishSingleFile=true flag?
The following seems to give the path you're after, to the original executable:
System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName