Labels

Tuesday, June 5, 2012

TFS Auto Build

error MSB3202: The project file "..\...\...\TeamProj2\TeamProjSub\Reference.csproj" was not found.
Answer:
Make sure that for all the projects that will be used in Team Build you have added the network login that will be running the build to the "Build Services" group. You also must add the machine to that group as well.
To add to the group, in the Team Explorer, right click on the Team Project then select "Team Project Settings" > "Group Membership". The "Project Groups on..." box will open up. One of the choices will be "Build Services". Highlight that and then click on the "Properties" button. Another box will open. You can add the network login and the machine from this window. Make sure you do this for every project that will be used. The problem I had was that I didnt do this for the shared projects. Let me know how it goes



I added up the network service in the Build Service user and updated my workspace in the Build Definition.
The Build Definition workspace was mapped only $TeamProj1 and ($sourceDir) which I updated to $/   so that the build engine gets the latest of all my Team project sources.