Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Problem with sending a parameter to T4 template from command line

$
0
0

I am triggering a T4 template from a batch file.

Batch file:

"%CommonProgramFiles%\Microsoft Shared\TextTemplating\10.0\texttransform.exe" -a !!envKey!PROD -out !file_name! %%d

where FileName is the t4 template name along with its path

In the T4 template I have

this.Host.ResolveParameterValue(null, null, "envKey");

It doesn't give me the parameter value and is empty. I am not able to figure out why?

Appreciate your help.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>