I am totally new to the .NET world and been trying to build an MVC application following this tutorial, creating a database first then creating an MVC project on top of it and whenever I create the Models from the existing db I get a number of errors like this:
Error 1 Compiling transformation: Metadata file '%VS120COMNTOOLS%..\IDE\EntityFramework.dll' could not be found c:\users\j\desktop\visual studio 2013\Projects\ContosoSite\ContosoSite\Models\ContosoModel.tt
And this one also:
Error 2 Compiling transformation: Metadata file '%VS120COMNTOOLS%..\IDE\Microsoft.Data.Entity.Design.dll' could not be found c:\users\j\desktop\visual studio 2013\Projects\ContosoSite\ContosoSite\Models\ContosoModel.tt
I have Entity Frameworks installed (version 6.1)
after hours of googling and searching for answers apparently there is a(or many) file(s) missing (dll?) in my Windows 8.1 OS.
Has anyone come up with a solution for this?
J
Followed the steps as per this stackoverflow, rebuilt the Models from the db and voila! All Sorted
Credit to @Jaon
The project in the example uses the help of a library called "Entity Framework" to help with database queries. In Visual Studio these libraries are installed as Nuget Packages. For more info about Nugets, check this link
In order to install this library follow these steps in your Visual Studio IDE. Go to Tools>Package Manager Console>Package Manager Console. When the console opens up, type "Install-Package EntityFramework" and hit enter key. This will install Entity Framework Nuget Package to your IDE. Then you can use this library by adding a using reference.