Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Solution.metaproj error MSB3202: The project file 'xxx' was not found

Tags:

tfsbuild

I have a TFS Project with two main folders:

Project

--Folder1

----LibraryA

--Folder2

----AppA referencing LibraryA

When I build AppA solution, TFS fails to build, providing the following Error:

C:\Builds\1\Project\AppA\Sources\Folder2..\Folder1\LibraryA\LibraryA.csproj

I think TFS is doing something like $(CurrentBuildDir)$(ProjectReferenceSourceLocation), which just sticks the ..\Folder1\LibraryA part on there.

I know shared assemblies should probably be build in their own solution and then references made to the build copies but this is how it is.

Any ideas how to get TFS to know how to navigate out of the solution folder to find referenced projects?

TIA

like image 994
MattC Avatar asked Dec 21 '11 15:12

MattC


1 Answers

A possible pitfall here is that you haven't set the source control path under $/Project1/Folder1/LibraryA as an active Working folder in the Workspace tab of your build definition.

If that's the case, sources won't be downloaded to the build-Agent during Build & naturally the compile is going to fail complaining about missing sources.

like image 76
pantelif Avatar answered Oct 05 '22 20:10

pantelif