Create a T4 from this

Aug 22, 2012 at 10:52 AM

Thanks for creating this project. Just wanted to add an example of a small T4'ifed thing for anyone who like to use T4 to generate the .js:

<#@output extension=".js" #>
<#@import namespace="BuildJavascriptDataModel" #>
<#@assembly name="C:\...Full...Path...To...MyOwnAssemblies...\MyTypeLibrary.dll" #>
<#@assembly name="C:\...Full...Path...To...\Debug\BuildJavascriptDataModel.dll" #><#=BuildJavascriptDataModel.Build(typeof (MyTypeLibrary.MyTypeXYZ))#>

just create a textfile, add the text above and save it as a MyTypeXYZ.tt when you save it will create the .js-file.