0

I am using Visual studio 2013 TFS. When I check in my project and try to build it in another machine I am getting an error like this.

Error 1 The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) G:\SampleProj\DataAccess\SampleData.cs

If I am running it in my machine, it works fine. I read that changing the reference path to relative in .csproj could solve the problem, but I could not find any such reference path.

Can any one help me how to solve this with necessary steps.?

AnandhaSundari M
  • 1,058
  • 2
  • 10
  • 23
  • Are you using different .NET versions on those machines? – dixus Dec 17 '13 at 13:00
  • No. I am using same version only .NET 4.5.1. – AnandhaSundari M Dec 17 '13 at 13:08
  • How do you have added the reference to EntityFramework.dll? It must be added to the Projects lib folder (or using nuget) and be referenced to the path of your project library. – dixus Dec 17 '13 at 13:20
  • I am getting this error for many dlls. Some I have referred using Nuget and some by adding using the .NET framework class libraries and assemblies in the add reference dialog. – AnandhaSundari M Dec 17 '13 at 14:19
  • Have you checked in the EntityFramework.dll or is it purely a nuget reference? if so you need to tell visual studio on the build server that nuget is allowed to download missing nuget packages: http://stackoverflow.com/questions/11261310/nuget-dont-see-allow-nuget-to-download-missing-packages-during-build – Snorre Dec 17 '13 at 17:15
  • @Snorre Followed the steps given in that post. but getting an error like this. Error 13 The element beneath element is unrecognized. Demo1.Core – AnandhaSundari M Dec 18 '13 at 09:39

0 Answers0