I install entity framework 5 to my 2012 project and create the EDMX using the already created Database schema.but project build was failed mentioning above error.so I search and found below solution.
Step 1: Go to below LOcation
Step 2 :
Open EF.Utility.CS.ttinclude file and remove code part from it and save .
“<#@ CleanupBehavior Processor="T4VSHost" CleanupAfterProcessingTemplate="true" #>”