Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when Reverse Engineer Code First with EF Power Tools Beta 2 and VS2012 Update 1

Just trying to generate POCO objects, context etc for an existing database by using the EF Power Tools Beta 2 "Reverse Engineer Code First" facility.

I'm using VS2012 Ultimate with Update 1, on Windows 7 64 bit.

I point it at my existing database and hit OK. I get the following error in my Build Output window:

One or more errors occurred while processing template 'Entity.tt'. C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes\EF.Utility.CS.ttinclude(1,4) : error : A processor named 'T4VSHost' could not be found for the directive named 'CleanupBehavior'. The transformation will not be run. The following Exception was thrown: System.InvalidOperationException: Cannot find processor for directive 'T4VSHost'. at Microsoft.DbContextPackage.Utilities.EfTextTemplateHost.Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost.ResolveDirectiveProcessor(String processorName) at Microsoft.VisualStudio.TextTemplating.Engine.ProcessCustomDirectives(ITextTemplatingEngineHost host, TemplateProcessingSession session, IEnumerable`1 directivesToBeProcessed)

Any ideas?

like image 888
Paul Avatar asked Nov 29 '12 17:11

Paul


2 Answers

Looks like it is a confirmed issue with Entity framework and Visual Studio 2012 update 1

The link does currently contain 2 work arounds

like image 157
Ben Anderson Avatar answered Sep 24 '22 14:09

Ben Anderson


Colocar el en e proyecto El destino de la plataforma como X64

like image 31
Adolfo Vanegas Avatar answered Sep 22 '22 14:09

Adolfo Vanegas