Metadata file not found - Data.Entity.Model

前端 未结 9 742
失恋的感觉
失恋的感觉 2020-12-03 14:35

Anyone having similar problem, while creating webservices?

Compiling transformation: Metadata file \'D:\\Program Files\\VS2013\\Common7\\Tools..\\ID

9条回答
  •  悲哀的现实
    2020-12-03 14:43

    This worked for me.

    1. Go to C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes\EF6.Utility.CS.ttinclude

    2. Edit it with Visual Studio.

    3. Remove the two dots after the URL, so the new lines like:

      <#@ assembly name="%VS120COMNTOOLS%\IDE\EntityFramework.dll" #>
      <#@ assembly name="%VS120COMNTOOLS%\IDE\Microsoft.Data.Entity.Design.dll" #>
      
    4. Fix your environment variables to end with directory just befor IDE. In my case

      C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\
      
    5. Rebuild the project or delete the entity framework and recreate it.

提交回复
热议问题