Hi,
Here is what I found while debugging some configuration issue that I
encountered.
It looks like the namespace NHibernate.Cfg.Configuration class considers
that AppDomain.CurrentDomain.RelativeSearchPath, if not empty, always
contains a single absolute path.
private static string GetDefaultConfigurationFilePath()
> {
> string baseDir = AppDomain.CurrentDomain.BaseDirectory;
> string relativeSearchPath =
> AppDomain.CurrentDomain.RelativeSearchPath;
> string binPath = relativeSearchPath == null ? baseDir :
> Path.Combine(baseDir, relativeSearchPath);
> return Path.Combine(binPath, DefaultHibernateCfgFileName);
> }
>
In fact, AppDomain.CurrentDomain.RelativeSearchPath can contain a list of
directory names, separated by semicolons.
See
http://msdn.microsoft.com/en-us/library/system.appdomain.relativesearchpath.aspx
(not quite explicit, but look at the sample code)
and
http://msdn.microsoft.com/en-us/library/system.appdomainsetup.privatebinpath.aspx(euqivalent
to RelativeSearchPath, format is more explicit).
Did you know about that?
Can I help and propose a patch?
Cheers,
Frédéric
--
You received this message because you are subscribed to the Google Groups
"NHibernate Contrib - Development Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhcdevs?hl=en.