How can I get my .NET Core 3 single file app to find the appsettings.json file?
I found an issue on GitHub here titled PublishSingleFile excluding appsettings not working as expected. That pointed to another issue here titled single file publish: AppContext.BaseDirectory doesn’t point to apphost directory In it, a solution was to try Process.GetCurrentProcess().MainModule.FileName The following code configured the application to look at the directory that the single-executable application was … Read more