I have issues to build a project using external libraries with Visual Studio 2010 TFS.
At the root of the solution, I have a “libs” folder with all my shared libraries and I’m referencing the libraries from there.
When I’m building the project, some libraries are not considered and I get the following error message:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1360): Could not resolve this reference. Could not locate the assembly "Spring.Data". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
I tried to change the solution configuration from Debug to Release, to locate the shared library in another folder… I didn’t manage to go through it.
Any idea on how I could get this library used in the build?
Thanks,
David
The first step is to verify that you’re correctly referencing the dlls using correct relative paths. Open the project files’ XML and make sure the paths are relative, not absolute (“….” vs. “C:\Code\”).
If the paths are all correct the next step is to make sure the files are being pulled down into the build server’s Workspace. You can verify that by just examining the build folder on the server. If they aren’t there then there’s probably a problem with the workspace mappings that define the folders to get when beginning a build.
Those are the most common issues I’ve seen. If those are correct, you’ll need some more diagnostic info.