user.config file question

  • Thread starter Thread starter Piotrekk
  • Start date Start date
P

Piotrekk

Hi

I have a problem connected with user.config file. I am using default
settings.settings . To settings.settings I am adding one user scope
string and one application scope string. Thus app.config file is added
to my project. When I build and run the project app.exe.config file is
created and added to application base directory. This file contains
two strings added previously.

Q1: No user.config file is created in my documents and settings
folder. Why? Is that because the application should be installed using
msi installer rather than xcopy?

I expected Visual Studio to separate user settings from app settings
(at build time )and create user.config in user specific folder, and
app.exe.config in application base folder.

Best Regards
PK
 
Hi

I have a problem connected with user.config file. I am using default
settings.settings . To settings.settings I am adding one user scope
string and one application scope string. Thus app.config file is added
to my project. When I build and run the project app.exe.config file is
created and added to application base directory. This file contains
two strings added previously.

Q1: No user.config file is created in my documents and settings
folder. Why? Is that because the application should be installed using
msi installer rather than xcopy?

I expected Visual Studio to separate user settings from app settings
(at build time )and create user.config in user specific folder, and
app.exe.config in application base folder.

Best Regards
PK


I think the user config is created in (C:\Documents and Settings
\USERNAME\Local Settings\Application Data\"Company Name"\ExeName)
when the application runs. you get a user config file for each
version. this is what i have noticed in my app...
 
I think the user config is created in (C:\Documents and Settings
\USERNAME\Local Settings\Application Data\"Company Name"\ExeName)
when the application runs. you get a user config file for each
version. this is what i have noticed in my app...

On second thoughts, it mite be created when you call the save method
in the settings.
 
Back
Top