If your local build is successful, and only the TFS build does not work, then this is usually due to a DLL reference path problem. Make sure the Dll is referenced as the relative path in the project file (.csproj).
To add a relative link to a separate directory, for example C: \ tfs_get \ Sources \ assembly \ abc.dll, do the following:
Add the link in Visual Studio by right-clicking the project in Solution Explorer and selecting Add Link.
Find * .csproj where this link exists and open it in a text editor. Let's say your .csproj location is c: \ tfs_get \ sources \ myfolder \ myproject \ myproj.csproj
Edit <HintPath> will be equal
.. \ .. \ Assembly \ abc.dll
This assembly will work correctly under the assumption that the folders (assembly, folder) in the source folder exist in TFS.
Hope this helps.
source share