[Mono-list] user.config, where to find?
pantarhei
mail4ng at gmail.com
Thu May 10 12:42:56 EDT 2007
Where can i find the user.config file if the .NET Application Settings are
used?
The default values are stored in the AppName.exe.config, user scoped and
changed setting are stored under:
C:\documents and settings\username\locale settings\app data\.... in the file
user.config.
But on mono this mechnism seems not to work. Am I missing something or is
the "settings framework" missing in Mono?
Short example:
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(Properties.Settings.Default.Name);
Console.ReadLine();
Properties.Settings.Default.Name = "new name";
Properties.Settings.Default.Save();
}
}
}
//Output on Windows:
C:\> ConsoleApplication1.exe
Name
C:\>
C:\> ConsoleApplication1.exe
new name
C:\>
//Output on Mono (Windows and Linux)
debian:# mono ConsoleApplication1.exe
Name
debian:#
debian:# mono ConsoleApplication1.exe
Name
debian:#
regards
--
View this message in context: http://www.nabble.com/user.config%2C-where-to-find--tf3722837.html#a10417211
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list