My .tt files are no longer working after switching to the open source EF code.
I have an EDMX file that has some attached .tt files. These generated fine originally.
Then I downloaded the latest source code from Git.
Then I removed the reference from my project to EntityFramework.dll and System.Data.Entity.dll.
Then I added a project reference to the downloaded EntityFramework project (from this site).
Now the project builds fine.
However, when I save the .tt file (therefore regenerating the output), I get a bunch of errors about missing types or namespaces. The missing types are:
TypeMapper
EdmMetadataLoader
CodeStringGenerator
GetResourceString
I see these types in the EntityFramework project. However, I'm not sure how to get T4 to use them. I'm assuming the "EF.Utility.CS.ttinclude" include at the top of the .tt files is wrong?
↧
New Post: Using templates after switching to reference to open source code
↧