Hi,
Looks like my previous post didn't pass through. So here I am again.
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 subdir of application dir.
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).
I registered an issue on Jira, but got no reactions so far.
http://216.121.112.228/browse/NH-2188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19275#action_19275
What do you think of it?
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.