I'm working on an EF6 model-first project that has a customized .tt
template for generating the .cs
files. I notice the comments are generated from resource strings such as Template_GeneratedCodeCommentLine1
. Where are these resource files and are they accessible to be altered? I'm just curious.
...
fileManager.StartHeader();
#>
//------------------------------------------------------------------------------
// <auto-generated>
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine1")#>
//
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine2")#>
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine3")#>
// </auto-generated>
//------------------------------------------------------------------------------
<#=codeStringGenerator.UsingDirectives(inHeader: true)#>
....
- As asked previously to no avail on the official forum https://social.msdn.microsoft.com/Forums/vstudio/en-US/ba8bba03-84bc-4a2d-8ce7-f24bb3161baf/t4-templates-getresourcestring?forum=vsx
- related question Remove auto generate comments