user-config

How to change the predefined userconfig directory of my .NET application?

亡梦爱人 提交于 2020-05-17 05:04:01
问题 Currentlly the user-settings of my application are stored in this default directory: C:\Users\{User Name}\AppData\Roaming\{Company Name}\{Assembly Name}.vshos_Url_{Hash}\{Assembly Version} I'm aware of the meaning of the default Microsoft naming rules, my question is: How can I change that defaut folder at execution time or by modifying the appconfig file?. My intention is only be able to handle the directory on which the user-settings of my application will be saved, for example I would like

How to change the predefined userconfig directory of my .NET application?

孤者浪人 提交于 2020-05-17 05:02:52
问题 Currentlly the user-settings of my application are stored in this default directory: C:\Users\{User Name}\AppData\Roaming\{Company Name}\{Assembly Name}.vshos_Url_{Hash}\{Assembly Version} I'm aware of the meaning of the default Microsoft naming rules, my question is: How can I change that defaut folder at execution time or by modifying the appconfig file?. My intention is only be able to handle the directory on which the user-settings of my application will be saved, for example I would like

Define a custom path where the user.config file should be saved?

。_饼干妹妹 提交于 2019-12-22 03:50:36
问题 If I rename my compiled application for example from myapp.exe to app.exe then when I run the renamed executable a new user settings folder is generated in this path: C:\Users\{User}\AppData\Local\{CompanyName}\{ExecutableName}_Url_{SystemGUID or something strange} So I loose all the saved settings. Then how I could solve this problem defining in a VBNET WinForms my own location to store the user.config file, or any other solution using the applicationsettings infrastructure ? (not saving the

Corruption of user.config

蹲街弑〆低调 提交于 2019-12-11 15:53:43
问题 Anyone knows the reason of "random" user.config corruption? I've a WinForms app affected by this problem at my client's production line. Found the same issue on the web and a workaround but I can't figure out because it happens. 回答1: I'm not sure why it's happening, but you are not alone, dude! I also tried different things to get around this. I wrote my own configuration handling classes with custom serialization. All I can tell you is, it's better but now still there. One observation I made

Where is user.config loaded from during Visual Studio debugging

僤鯓⒐⒋嵵緔 提交于 2019-12-10 16:38:40
问题 I have an application that reads from a user settings file, typically stored in Users/{username}/AppData/Local/{publisher}/{app}/{version}/user.config. I want to test making changes directly to the file, not through the Visual Studio properties editor. I found this answer to a different question that points to where the application is supposedly loading the file from, but it doesn't seem to exist when I check during a debug session in Visual Studio. For example, when I run the following in

How can I watch the user.config file and reload the settings when it changes?

亡梦爱人 提交于 2019-12-09 07:35:30
问题 I have a situation where I am running multiple instances of my WPF application. I want the instances to share the same user.config file. Currently, whichever instance writes to the user.config file last wins. I'd prefer for all the instances to watch the user.config file and reload the settings whenever another instance changes it. The user.config file is currently located here: C:\Documents and Settings\ username \Local Settings\Application Data\ company name \ ExeName .exe_StrongName_ hash

Define a custom path where the user.config file should be saved?

情到浓时终转凉″ 提交于 2019-12-05 01:47:18
If I rename my compiled application for example from myapp.exe to app.exe then when I run the renamed executable a new user settings folder is generated in this path: C:\Users\{User}\AppData\Local\{CompanyName}\{ExecutableName}_Url_{SystemGUID or something strange} So I loose all the saved settings. Then how I could solve this problem defining in a VBNET WinForms my own location to store the user.config file, or any other solution using the applicationsettings infrastructure ? (not saving the settings on the registry or other things) PS: I've read this SO post which is a little bit different

How can I watch the user.config file and reload the settings when it changes?

别等时光非礼了梦想. 提交于 2019-12-03 08:45:28
I have a situation where I am running multiple instances of my WPF application. I want the instances to share the same user.config file. Currently, whichever instance writes to the user.config file last wins. I'd prefer for all the instances to watch the user.config file and reload the settings whenever another instance changes it. The user.config file is currently located here: C:\Documents and Settings\ username \Local Settings\Application Data\ company name \ ExeName .exe_StrongName_ hash \1.0.0.0 For example, C:\Documents and Settings\usename\Local Settings\Application Data\Company\5kAdCon