MIssing EfTextTemplateHost

2019-08-10 04:10发布

问题:

Applying Reverse Engineer Code first, appears this bug:

Compiling transformation: No se puede encontrar el tipo o el nombre de espacio de nombres 'EfTextTemplateHost' (¿falta una directiva using o una referencia de ensamblado?)

Any suggestion ??

回答1:

EfTextTemplateHost is part of the EF Powertools. So make sure it is installed correctly.

Add this to to the T4 file and change the placehoders [] to match your system:

<#@ assembly name="C:\Users\[username]\AppData\Local\Microsoft\VisualStudio\[vsVersion]\Extensions\[extensionHash]\EFPowerTools.dll" #>