[Mono-list] user.config, where to find?
DW
mail4ng at googlemail.com
Thu May 10 17:15:28 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
More information about the Mono-list
mailing list