.net - Reference dll from another project in T4 -


i want able reference assembly in t4 template don't want bind myself debug/release mode version of it.

i tried use following include assembly:

<#@ assembly name="..\..\otherassy\bin\$(configuration)\otherassy.dll" #> 

but throws error saying cant find dll.

can use configuration property configuration mode e.g. debug/release? or barking wrong tree?

yes can, (for transforms within ide @ least), relative path won't work, t4's 'current' directory isn't project folder rather vs's installation folder.

so if use $(solutiondir) or $(projectdir) should go.

incidentally, full list of variables here on msdn


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -