After creating MS Build Definition for a new branch I've got an error
"No matching items found in $/MyBranch/subDir in your workspace, or you do not have permission to access them".
To fix it it's required in Build Definition Edit open Workspace TAB and add folder mapping for a new branch in the table like the following
Source Control Folder | Build Agent Folder
$/foo/bar | $(SourceDir)\somewhere