[Mono-list] xbuild MSBuildExtensionsPath

QbProg tholag at gmail.com
Thu Jun 7 12:43:09 UTC 2012

Hello Mono users,

I'm trying to use a custom target file with xbuild, in ubuntu 12.04.
I have a .targets and a relative assembly .dll that implements some of the
targets. I'm importing it correctly,
since it works in the system MSBuildExtensionsPath directory.

I'd like to keep these two files local to the project, so
I've set the MSBuildExtensionsPath environment variable (using mono 2.10.8)
pointing to the
path where the .targets file is.
The path is for instance /home/thomas/test/
It seems that xbuild finds the .targets file, but then it is not able to
load the DLL, placed in the same dir.

"Could not load assembly /usr/lib/mono/xbuild/.../Assembly.dll"

it seems that even if the .targets file is loaded from a custom directory,
the assembly is always loaded from the relative /usr/lib/mono/xbuild/

Is there a way to tell xbuild where to look for assemblies?

Thank you for any hint,
Thomas "QbProg"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120607/e26eca03/attachment.html>

More information about the Mono-list mailing list