[MonoDevelop] Error when using $(TargetDir) or ${TargetDir} in T4 template file

kunkurus at gmail.com kunkurus at gmail.com
Sun Aug 2 20:03:46 UTC 2015


Hello,

I have an error when using $(TargetDir) or ${TargetDir} in T4 template file.

<#@ assembly name="$(TargetDir)TypeLite.dll" #> or
<#@ assembly name="${TargetDir}/TypeLite.dll" #>

  generates the following error:

"The 'TextTemplatingFileGenerator' code generator crashed: Object 
reference not set to an instance of an object."

When I use the absolute path in the name of the assembly, I have no error.

I don't understand why ${TargetDir} is not working.

Thank you for your help.

k
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20150802/207b17f3/attachment.html>


More information about the Monodevelop-list mailing list