Geeks With Blogs
TFS Austin Agile SCM Talk Visual Studio ALM Team Foundation Server Practice

I had a couple of minor delays setting up Entity Framework in Visual Studio 2012 Update 1.

  1. Reverse engineering the database failed with the following error: “A processor named 'T4VSHost' could not be found for the directive named 'CleanupBehavior'. The transformation will not be run.”

The work around for C# projects is to:

Open the File
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes\EF.Utility.CS.ttinclude (for C#)

And Remove the First Line:
<#@ CleanupBehavior Processor="T4VSHost" CleanupAfterProcessingTemplate="true" #>

See this bug in Connect  for more details.

     2.  Finding the reference for “using System.Data.Entity.Infrastructure.”  The procedure to add this reference is:

In Visual Studio 2012, select menu item "Tools"-> Library Package Manager -->  Package Manger Console 
and typing there:
PM> install-package EntityFramework

See this forum post for more details.

Posted on Friday, December 14, 2012 3:17 PM | Back to top

Comments on this post: Entity Framework for Visual Studio 2012 Update 1: Reverse Engineer Bug and System.Data.Entity.Infrastructure

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Bob Hardister | Powered by: | Join free