问题
I have homebrew installed, and was able to upgrade subversion to 1.7 using it (and moving /usr/local/bin ahead of /usr/bin in my PATH).
So if I type:
svn help
Subversion command-line client, version 1.7.6.
The problem is MonoDevelop doesn't seem to use the svn in the PATH, because svn 1.7 repos don't appear to be versioned in MonoDevelop.
I need 1.7 because I also use a VM with Windows and I share repos between the host and guest. On Windows I used TortoiseSVN/AnkhSvn which target subversion 1.7.
Is there a way to get MonoDevelop to use svn in a different location? I tried playing with MonoDevelop.VersionControl.Subversion.Unix.dll.config, but couldn't get it to work:
<configuration>
<dllmap os="osx" dll="libsvn_client-1.so.0" target="libsvn_client-1.dylib" />
<dllmap os="osx" dll="libapr-0.so.0" target="libapr-1.0.dylib" />
<dllmap os="freebsd" dll="libapr-0.so.0" target="libapr-1.so" />
</configuration>
I tried creating a symbolic link in the same dir as the Subversion dll:
libsvn_client-1.dylib -> /usr/local/Cellar/subversion/1.7.6/lib/libsvn_client-1.dylib
回答1:
Try to start monodevelop with MONO's debugging enabled, that is use something like:
export MONO_LOG_LEVEL=debug; export MONO_LOG_MASK=dll; mono MonoDevelop.exe
That should give you some information about exactly where mono is trying to find the subversion library.
来源:https://stackoverflow.com/questions/12444081/monodevelop-using-subversion-1-7-on-a-mac