* Configuration.cs : (Save) when the given file path is relative
it failed to create directory. Fixed standalone test t25/t26.
* InternalConfigurationHost.cs : pass userLevel to create a host
instance.
svn path=/trunk/mcs/; revision=89597
+2007-11-14 Atsushi Enomoto <atsushi@ximian.com>
+
+ * Configuration.cs : (Save) when the given file path is relative
+ it failed to create directory. Fixed standalone test t25/t26.
+ * InternalConfigurationHost.cs : pass userLevel to create a host
+ instance.
+
2007-10-04 Atsushi Enomoto <atsushi@ximian.com>
* InternalConfigurationHost.cs : when the streamName is for
[MonoInternalNote ("Detect if file has changed")]
public void SaveAs (string filename, ConfigurationSaveMode mode, bool forceUpdateAll)
{
- string dir = Path.GetDirectoryName (filename);
+ string dir = Path.GetDirectoryName (Path.GetFullPath (filename));
if (!Directory.Exists (dir))
Directory.CreateDirectory (dir);
Save (new FileStream (filename, FileMode.OpenOrCreate, FileAccess.Write), mode, forceUpdateAll);
public override void Init (IInternalConfigRoot root, params object[] hostInitParams)
{
map = (ExeConfigurationFileMap) hostInitParams [0];
+ level = (ConfigurationUserLevel) hostInitParams [1];
}
public override string GetStreamName (string configPath)