Exception Message: There is no working folder mapping for
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
- open up
Solution 2
You need to map the root of the team project (in your case "testing) which is not done.
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.
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.
user603007
Updated on July 09, 2022Comments
-
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)