Team Team Visual Studio Build Issues

I use Visual Team Team Services as a management source and have enabled continuous integration.

My project is an ASP.NET application that used Entity Framework 5. When I check the code and the build controller tries to build it, the following errors appear.

DataModel \ GenomicsTutorDataModel.Context.cs (40): type or namespace name 'DbSet' cannot be found (do you skip using the directive or assembly reference?)

C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Microsoft.Common.targets (1578): This link could not be resolved. Could not find assembly "EntityFramework". Make sure the assembly exists disk. If this link is required by your code, you may get compilation errors.

In my solution, I made system.data.entity CopyLocal = True, but did not succeed.

Any ideas?

+4
source share
2 answers

Perhaps you are on a 64-bit machine, but the TFS server is not? Try creating a project for any CPU or x86 .

+1
source

Add the DLL that you referenced for System.Data.Entity to a folder in project or somewhere in a folder in Source Control and link to it. Check it out and try creating the app again.

0
source

All Articles