There is no appsetting.json #361

Closed
opened 2026-01-29 16:37:34 +00:00 by claunia · 2 comments
Owner

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?

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?
claunia added the question label 2026-01-29 16:37:34 +00:00
Author
Owner

@win32nipuh commented on GitHub (Jul 17, 2019):

Sorry, I have found it in subdirectory.

@win32nipuh commented on GitHub (Jul 17, 2019): Sorry, I have found it in subdirectory.
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#361