As far as I understand all default settings of app.config settings is hard coded in the application and will generated on the fly in the first run.
If this is true then there is no good reason to deploy these files with an installer or in a zip package, am I right? Or am I missing something in here.
I want to be sure before rolling out the next release.
Default settings are hard coded, but required settings are not. If you have any required settings at all, then your application will throw an exception when trying to load the section the required setting is in if it doesn't exist, and if the file doesn't exist, then the setting doesn't exist.
Also, this only applies to custom sections... If you use default sections like ConnectionStrings, then you need to deploy your app.config with your application, because this is the only place these are stored.
Long story short, yes, you do need to deploy app.config with your application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With