Mono TextTransform.exe can't find referenced assemblies

550 Views Asked by At

I'm trying to use Mono's TextTransform.exe to run T4 templates written for a Windows environment on Linux.

We've got a custom assembly, providing some utility functions used in the template, which builds in MonoDevelop. I'm running TextTransform.exe like this:

/usr/lib/monodevelop/AddIns/MonoDevelop.TextTemplating/TextTransform.exe \
    -I=./IncludeScripts/ \
    -P=./DataModelDefinition/Output/x86/Release/ \
    -a='dataModelPath!./DataModel/DataModel.xml' \
    -out=generation.log \
    Templates/Process.tt
(0,0): ERROR Metadata file `DataModelDefinition.dll' could not be found

The folder ./DataModelDefinition/Output/x86/Release/ does contain DataModelDefinition.dll, which builds without warning or error. I've tried adding an explicit reference to the assembly on the command-line with -r=./DataModelDefinition/Output/x86/Release/DataModelDefinition.dll but it makes no difference.

Is there something I'm missing here?

Edit: Also tried export MONO_PATH=$(pwd)/DataModelDefinition/Output/x86/Release/ but it makes no difference.

1

There are 1 best solutions below

0
On BEST ANSWER

This was a bug in TextTransform and has been fixed in the current HEAD on github.