Exception Message: There is no working folder mapping for

27,553

Solution 1

I had the same problem. Turned out I had forgotten to expand the Items to Build section of the Process tab. To fix you need to:

  • Edit build definition
  • Open Process tab on left
  • Open the 1. Required section

    • open up Items to Build
    • ensure the Projects to Build is pointed to the correct .sln

Edit build definition screen

Solution 2

You need to map the root of the team project (in your case "testing) which is not done. enter image description here

The local path should be "c:\dev\testing\buildtest".

How is your BuilDefinition setup?

Solution 3

In my case clicking on the Build Agent Folder (...) button revealed that the $(SourceDir) wasn't set, indicating the mapping was broken.

enter image description here

Solution 4

This can also happen if you forget to include your parent folder of the source code in the Source Settings in the build definition.

 $/Source/Code/ParentOfSolution

Working folders basically creates a white list of files for the build to look at and use so it needs to contain your source code that is referenced by your sln and any DLL's that your code references.

Share:
27,553
user603007
Author by

user603007

Updated on July 09, 2022

Comments

  • user603007
    user603007 almost 2 years

    I am trying to test automated builds in tfs/vs.net 2012. I have set the workpaths in the source control explorer but now I am getting an error:

    Exception Message: There is no working folder mapping for $/testing/buildtest. (type ItemNotMappedException)
    

    enter image description here