I am attempting to generate some code via T4 and I am receiving the following error when I include the <#@ template language="VBv3.5"#> directive in my template.
vbc : Command line (0,0) : error BC2006: Compinling transformation: option 'r' requires ':(file_list)
If I use <#@ template language="C#v3.5"#> as my directive it works just fine. Also if I do not attempt to generate via code and just save the .tt file it works just fine with the VBv3.5 directive.
Here is my t4 template.
<#@ output extension="txt" #>
<#@ assembly name="Microsoft.SqlServer.ConnectionInfo" #>
<#@ assembly name="Microsoft.SqlServer.Smo" #>
<#@ assembly name="System.Configuration" #>
<#@ assembly name="Microsoft.VisualBasic" #>
hello world
Here is my .NET code
Dim host As CustomCmdLineHost = New CustomCmdLineHost()
Dim engine As Engine = New Engine()
host.TemplateFileValue = sTemplateFile
'Read the text template.
Dim input As String = File.ReadAllText(sTemplateFile)
'Transform the text template.
Dim output As String = engine.ProcessTemplate(input, host)