1

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)#>
....
Community
  • 1
  • 1
Tim Abell
  • 11,186
  • 8
  • 79
  • 110

1 Answers1

2

They are embedded resources into the Microsoft.Data.Entity.Design.dll which is located at the visualstudio folder /Common7/IDE/.

With ILSpy or similar you can browse the assembly and find this resource file.

Microsoft.Data.Entity.Design.TemplateResources.resources (Embedded, Public)
Janne Matikainen
  • 5,061
  • 15
  • 21