'How to publish .net core console application into single .exe file?

This .NET Core console application includes 'appsettings.json' file and use its' configs. When I publish it, inside the release folder there are .exe file with the appsettings.json file. I can't use .exe without the appsettings.json file. How can I get this application into single .exe file?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source