Reputation: 570
I've been chasing my tail and several SO articles around App.exe.config files. Everything I read stipulates that it indeed should be included with my application, even for a WPF app.
So, when I copy the files to another folder location and attempt to use it, I'm not seeing any update in the App.exe.config file.
Instead, I'm seeing it update in C:\users\username\AppData\Local\AppName_Url_vwndydm5awsw44xgnthq0lonv15jmpyh\#.#.#.#\user.config
Granted, these settings are setup as "User" settings, even though the App.exe.config file has these as original values.
What on earth do I need to do for it to update App.exe.config instead of the AppData file?
Using VB.Net for .Net 3.5.
Sample:
Private Sub DecreaseFont_Click(sender As Object, e As RoutedEventArgs) Handles Decrease_Font.Click
MySettings.Default.Reload()
'My.Settings.Reload()
Dim currentSize As Integer = My.Settings.Font_Size
Dim newSize As Integer = currentSize - 2
If newSize >= 10 Then
FunLabel.FontSize = newSize
End If
MySettings.Default.Font_Size = newSize
'My.Settings.Font_Size = newSize
MySettings.Default.Save()
'My.Settings.Save()
' My.Settings.Reload()
End Sub
Upvotes: 1
Views: 74