I am having a tough time trying to figure out where my settings are going. I am retaining a connection string which I can not find anywhere. So far I learned that AppName.vshost.exe.config is supposed to be the debug version and AppName.exe.config is supposed to be the release but that is not the case or if it is then they are not going to thier default folders nor the folder I chose. I do not know if I did something wrong or this is a Microsoft "feature" but if anyone has a clue please fill me in.
I am developing on a Win 7 machine with VS 2015. My build - Configuration is "Active (Debug)" and I have set the Output path to "C:\Bin" because I have other libraries I am building that are required by this app and its easier to just set all the output paths to the same place.
To try to find the issue I made a new setting, Test:
I also added a textbox to the form and use it like so:
textBox1.Text = Settings.Default.Test;
private void Main_FormClosing(object sender, FormClosingEventArgs e)
Settings.Default.Test = textBox1.Text;
Those are user-scope settings, not application-scope, so they won't be persisted back to
app.exe.config in the bin directory (which is often
C:\Program Files and not writable by the user).
Somewhere under %LOCALAPPDATA% (which is user-writable) you'll find the settings stored in a file named
The directory this file is in is influenced by your assembly metadata, such as Company Name and Product Name and Version.