c# - T4 Code Generator How To Use Web References -
i creating code generator go through each web methods of api (asmx web service) cannot figure out how reference web reference in .tt file
<#@ assembly name="myapi" #>
will not work
compiling transformation: metadata file 'myapi' not found
currently work around create .dll wsdl , can reference in .tt no problem:
<#@ assembly name="c:\myapi.dll" #>
is there way reference web references directly t4 without having make .dll s out of them?
you can't directly(easily anyhow) reference current project's files in t4 generator. have use system.reflection
, or envdte
unless want access file directly not reference
text file... can have system.io
read file via relative path.
Comments
Post a Comment