Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does an application need app.config

Previously sorry for my English... I want to store connection string in app.config

Does my application need app.config file after it have build I've tried to delete app.config and then ran application from the release folder but no errors appeared, but when from the debug folder i have got one.

So where app.config's keys embed in application?

like image 617
Бахрам Ходжаев Avatar asked Dec 28 '25 16:12

Бахрам Ходжаев


1 Answers

By default, when you build; the app.config is renamed to <YourAssembly>.exe.config and copied to the output directory.

This is why it works even if you deleted app.config - the old .config is still in the output directory. Try looking in that directory for a .config file.

like image 149
driis Avatar answered Dec 30 '25 06:12

driis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!