Change app config property without recompiling or republishing in Windows Application

Last Reply 9 months ago By dharmendr

Posted 9 months ago

Hello every1,

I have a current program where I added a setting in the config where it hides some tabs and file menus depending on a Boolean value. I would like to be able to turn this config setting on/off without having to recompile and republish the program.

What would be the best way to do something in this nature? What would you guys suggest? Maybe an external XML file and set the property: Copy to Output = Copy Always?

In a diff program I created a debug log txt file and once I published and installed the program the log is nowhere to be found.

So I am just curious where this would go after I installed the program and so a user without technical knowledge could easily change this file and that would adjust the settings on the program.

Properties.Settings.Default.SystemManualDir;

But I can't find this file after installing the published program.

You are viewing reply posted by: dharmendr 9 months ago.
Posted 9 months ago
bigbear says:
turn this config setting on/off without having to recomplile and republish the program

For this you need to use Database. Based on the Database setting on/off your data is displayed without rebuild the application.

bigbear says:
But I cant find this file after installing the published program.

Refer below link.

https://stackoverflow.com/questions/982354/where-are-the-properties-settings-default-stored

https://stackoverflow.com/questions/27644917/properties-settings-default-variable-does-not-exists-in-current-context