.net - Simple T4 template doesn't work in Visual Studio 2010, but does in MonoDevelop? -
I'm having all kinds of visual studio 2010 to compile my T4 template, I'm pretty sure that this The template worked on 2008 but I can not confirm it right now. I'm sure it works on MonoDevelop.
Anyway, here's my template's title:
& lt; # @ Template language = "C # v3.5" Hostpecific = "true" # & gt; & Lt; # @ Output Extension = "CS" # & gt; & Lt; # @ Assembly name = a ???? System.Coreâ ???? # & Gt; & Lt; # @ Import Namespace = "System. IO" # & gt; & Lt; # @ Import namespace = "System.Text" # & gt; & Lt; # @ Import Namespace = "System selection.Generic" # & gt; & Lt; # @ Import namespace = "system" # & gt; & Lt; # @ Import Namespace = "System.Link" # & gt; Visual Studio 2010 complains that the first line, template instruction:
An instruction was specified in the wrong format. Changes will not run. Please type in the format & lt; # @ Name [parameterName = "parameterValue"] * # & gt;
Why not work as expected?
My problem was that I copied and pasted the assembly Besides, "code" instead of "" In addition, I thought that the line number returns it as an error originally meaningless
Comments
Post a Comment