where are my Settings?  
Author Message
vtortola





PostPosted: Visual C# General, where are my Settings? Top

Hi!

I'm using the Settings.settings to store application parameters, but ... where is this data

When i using 'Properties.Settings.Default' i can get and/or set all variables but... when i change the application name or path , the data are lost.

What file must i distribute with the exe file where i can find it where i must put it

Regards.



Visual C#2  
 
 
David L





PostPosted: Visual C# General, where are my Settings? Top

The [applicationName].exe.config in your [projectName]\bin\debug directory will contain the default values. So I guess that's the file you're looking for. I belive it's xml, so you can open and check that it contains the values you want.

However, if you change values at runtime, two files may be created depending which kind of value you're changing (user or application). The files may be something like the following:

C:\Document and Settings\[user]\Local Settings\Application Data\[the company from your assembly file]\[application name][Generated key]

C:\Document and Settings\[user]\Application Data\[the company from your assembly file]\[application name][Generated key]

Did that solve it


 
 
V.Tortola





PostPosted: Visual C# General, where are my Settings? Top

OK! very usefull.

A lot of thanks ;)

Regards.