Austin Agile DevOps

DevOps in the Cloud
posts - 68 , comments - 7 , trackbacks - 0

My Links

News

Tag Cloud

Archives

Post Categories

Blogs

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

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.

Print | posted on Friday, December 14, 2012 3:17 PM |

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Comment:
Verification:
 

Powered by: