Hi could you show me how to add a using statement via an include template.
Basically i am trying to find the region 'AddtionalNamespaces'
and add the statement in there but it keeps just creating a new section called 'AdditionalNamespaces' at the bottom of the generated class file and putting the statement in there.
I have read the docs about templates, but to be honest i find it all rather confusing.
My template looks like this:
<%=DotNetTemplateEngine.GetUserCodeRegion("AdditionalNamespaces", null, GenerateUsing()) %>
<~
public string GenerateUsing()
{
return "using System.Linq;" + Environment.NewLine;
}
~>