.net - DataTable in T4 template -
I am creating a t4 template that will generate an enumeration from many values in our database. The strange thing is that, as soon as I try to create a DataTable in the template code, I get an error message output:
When the table is created, then it is commented that there is no problem, but if I remove the comment then I get an error, I'm pulling my hair on it What am I missing?
When I rebuilt the project related to the template, I get a more sensible error message Telling that I do not reference the System.Xml-assembly:
& lt; # @ Assembly Name = "System.Xml" # & gt;
Comments
Post a Comment