0
votes

I am using a TFS Git project in Team Services and while my project compiles locally, I get a build failure when I check in my code to VS online and manually queue the build.

The errors at the moment are only pertaining to enterprise library data access dlls. I am using V6 of the library and this is error I get

The type or namespace name 'Practices' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

In my build definition I have checked the box against both Restore Nuget Packages and when that alone did not work, I checked the box against [Clean] as well. I still get that error. My packages.config files are checked in for each of the projects in the solution. I also have the Packages folder checked in but this folder has no dlls. It only has the various .nupkg files and respective .xml files checked in. Is this causing the problem?

1

1 Answers

0
votes

Yes, you have to either checkin the DLLs or delete the nupkg files. The build server thinks you already have the packages so its not trying to restore them but the DLLs aren't there to reference.