mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
There is no appsetting.json #361
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ZedZipDev on GitHub (Jul 17, 2019).
Originally assigned to: @GregorBiswanger on GitHub.
I have built my app in Windows, it works ok.
Then decided to test it in Linux. I have built target linux, copied to Ubuntu and run. It stars and tries to work.
But I do not see appsetting.json and log4net.config in output directory. These files contain some settings.
Where are these files located? How to change settings for runtime?
@win32nipuh commented on GitHub (Jul 17, 2019):
Sorry, I have found it in subdirectory.
@GregorBiswanger commented on GitHub (Jul 26, 2019):
The appsettings.json file can be read in as usual with ASP.NET Core and work with it.
https://www.c-sharpcorner.com/article/reading-values-from-appsettings-json-in-asp-net-core/
After the build you can see the file here:
ProjectName\bin\Desktop\win-unpacked\resources\bin